-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
48 lines (40 loc) · 1.1 KB
/
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
version: '3.7'
services:
dhu:
build:
context: .
image: grachev/dhu
# environment:
# CONTAINER_HOSTNAME_DISABLED: 'false'
# CONTAINER_NAME_DISABLED: 'false'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./:/usr/local/app
- /etc/hosts:/opt/hosts
lb:
image: nginx:alpine
container_name: lb
nginx:
image: nginx:alpine
labels:
ru.grachevko.dhu: '{www,api,img,admin,profile}.nginx.local'
nginx2:
image: nginx:alpine
labels:
ru.grachevko.dhu: '{www,admin,api}.nginx.local:2'
nginx3:
image: nginx:alpine
labels:
ru.grachevko.dhu: 'img.nginx.local:3;api.nginx.local:5'
nginx4:
image: nginx:alpine
labels:
ru.grachevko.dhu: 'nginx4.local:0:lb'
nginx5:
image: nginx:alpine
labels:
ru.grachevko.dhu: 'nginx5.local:0:lb'
nginx6:
image: nginx:alpine
labels:
ru.grachevko.dhu: 'nginx6.local:0:127.0.0.1'