-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.routing.yml
More file actions
79 lines (75 loc) · 1.5 KB
/
docker-compose.routing.yml
File metadata and controls
79 lines (75 loc) · 1.5 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: 'routing'
services:
nginx:
image: nginx:1.27-alpine
container_name: cmnw-nginx
restart: unless-stopped
environment:
- TZ=Europe/Moscow
ports:
- "80:80"
- "443:443"
- "2222:2222" # GitLab SSH proxy
expose:
- "8080"
volumes:
- nginx-config:/etc/nginx:ro
- nginx-logs:/var/log/nginx
networks:
- edge
- cmnw
nginx-ui:
image: uozi/nginx-ui:latest
container_name: cmnw-nginx-ui
restart: unless-stopped
environment:
- TZ=Europe/Moscow
ports:
- "9080:9000"
volumes:
- nginx-config:/etc/nginx
- nginx-ui-state:/etc/nginx-ui
- nginx-logs:/var/log/nginx
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- nginx
networks:
- edge
- cmnw
nginx-metrics:
image: nginx/nginx-prometheus-exporter:1.4.0
container_name: cmnw-nginx-metrics
restart: unless-stopped
command:
- -nginx.scrape-uri=http://cmnw-nginx:8080/stub_status
ports:
- "9113:9113"
depends_on:
- nginx
networks:
- edge
networks:
edge:
name: cmnw_edge
driver: bridge
cmnw:
external: true
volumes:
nginx-config:
driver: local
driver_opts:
type: none
o: bind
device: '/mnt/nginx'
nginx-logs:
driver: local
driver_opts:
type: none
o: bind
device: '/mnt/nginx/logs'
nginx-ui-state:
driver: local
driver_opts:
type: none
o: bind
device: '/mnt/nginx-ui'