-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 952 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "3"
services:
nginx-proxy:
container_name: proxy
image: jwilder/nginx-proxy
network_mode: bridge
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- testt
webserver1:
container_name: testt.dev.localhost
image: node:lts
working_dir: /var/www/html/app/
entrypoint: /bin/bash
expose:
- 3000
environment:
- VIRTUAL_HOST=testt.dev.localhost
- VIRTUAL_PORT=3000
tty: true
volumes:
- ./testt/:/var/www/html/app
networks:
- testt
webserver2:
container_name: testt2.dev.localhost
image: node:lts
working_dir: /var/www/html/app/
entrypoint: /bin/bash
expose:
- 3001
environment:
- VIRTUAL_HOST=testt2.dev.localhost
- VIRTUAL_PORT=3001
tty: true
volumes:
- ./testt2/:/var/www/html/app
networks:
- testt
networks:
testt:
external: true