-
Notifications
You must be signed in to change notification settings - Fork 198
/
docker-compose.yaml
109 lines (102 loc) · 2.4 KB
/
docker-compose.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: "3.9"
services:
nginx_base:
build:
context: .
volumes:
- "./generic_conf/:/usr/local/openresty/nginx/conf/generic_conf/"
- "./src/:/lua/src/"
loadbalancer:
extends:
service: nginx_base
volumes:
- "./nginx_loadbalancer.conf:/usr/local/openresty/nginx/conf/nginx.conf"
ports:
- "18080:8080"
depends_on:
- edge
- edge1
- edge2
backend:
extends:
service: nginx_base
volumes:
- "./nginx_backend.conf:/usr/local/openresty/nginx/conf/nginx.conf"
ports:
- "8080:8080"
backend1:
extends:
service: nginx_base
volumes:
- "./nginx_backend.conf:/usr/local/openresty/nginx/conf/nginx.conf"
ports:
- "8180:8080"
edge:
extends:
service: nginx_base
volumes:
- "./nginx_edge.conf:/usr/local/openresty/nginx/conf/nginx.conf"
depends_on:
- backend
- backend1
ports:
- "8081:8080"
edge1:
extends:
service: nginx_base
volumes:
- "./nginx_edge.conf:/usr/local/openresty/nginx/conf/nginx.conf"
depends_on:
- backend
- backend1
ports:
- "8082:8080"
edge2:
extends:
service: nginx_base
volumes:
- "./nginx_edge.conf:/usr/local/openresty/nginx/conf/nginx.conf"
depends_on:
- backend
- backend1
ports:
- "8083:8080"
prometheus:
image: prom/prometheus:v2.17.1
container_name: prometheus
volumes:
- ./config:/etc/prometheus
- ./data/prometheus:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention.time=24h'
- '--web.enable-lifecycle'
restart: unless-stopped
ports:
- "9090:9090"
labels:
org.label-schema.group: "monitoring"
depends_on:
- edge
- edge1
- edge2
- backend
- backend1
- loadbalancer
grafana:
image: grafana/grafana:latest
container_name: monitoring_grafana
restart: unless-stopped
links:
- prometheus
volumes:
- ./data/grafana:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
ports:
- "9091:3000"