-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
52 lines (50 loc) · 936 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
50
51
52
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- 8080:80
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
weba:
build:
context: web/a
expose:
- 8081
environment:
- VIRTUAL_HOST=a.localhost
depends_on:
- nginx-proxy
webb:
build:
context: web/b
expose:
- 8082
environment:
- VIRTUAL_HOST=b.localhost
depends_on:
- nginx-proxy
webc:
build:
context: web/generic
expose:
- 8080
environment:
- VIRTUAL_HOST=c.localhost
- WEB_MESSAGE=Web C from generic
- WEB_NAME=D
- WEB_PORT=8080
depends_on:
- nginx-proxy
webd:
build:
context: web/generic
expose:
- 8080
environment:
- VIRTUAL_HOST=d.localhost
- WEB_MESSAGE=Web D from generic
- WEB_NAME=D
- WEB_PORT=8080
depends_on:
- nginx-proxy