-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.multi-node.yml
More file actions
101 lines (91 loc) · 2.34 KB
/
docker-compose.multi-node.yml
File metadata and controls
101 lines (91 loc) · 2.34 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3"
services:
php:
build:
dockerfile: ./docker/php-fpm/Dockerfile
context: .
depends_on:
- redis
volumes:
- ./:/app
redis:
image: redis:alpine
haproxy:
image: haproxy:alpine
depends_on:
- prometheus
- prometheus2
- prometheus3
- pushgateway
- pushgateway2
- pushgateway3
volumes:
- ./docker/haproxy:/usr/local/etc/haproxy:ro
prometheus:
image: prom/prometheus
command:
- '--web.listen-address=:9091'
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.console.libraries=/etc/prometheus/console_libraries'
depends_on:
- pushgateway
ports:
- 9091:9091
volumes:
- ./docker/prometheus/prometheus1.yml/:/etc/prometheus/prometheus.yml
pushgateway:
image: prom/pushgateway
command:
- '--web.listen-address=:9191'
ports:
- 9191:9191
prometheus2:
image: prom/prometheus
command:
- '--web.listen-address=:9092'
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.console.libraries=/etc/prometheus/console_libraries'
depends_on:
- pushgateway2
ports:
- 9092:9092
volumes:
- ./docker/prometheus/prometheus2.yml/:/etc/prometheus/prometheus.yml
pushgateway2:
image: prom/pushgateway
command:
- '--web.listen-address=:9192'
ports:
- 9192:9192
prometheus3:
image: prom/prometheus
command:
- '--web.listen-address=:9093'
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.console.libraries=/etc/prometheus/console_libraries'
depends_on:
- pushgateway3
ports:
- 9093:9093
volumes:
- ./docker/prometheus/prometheus3.yml/:/etc/prometheus/prometheus.yml
pushgateway3:
image: prom/pushgateway
command:
- '--web.listen-address=:9193'
ports:
- 9193:9193
grafana:
image: grafana/grafana
depends_on:
- haproxy
ports:
- 3000:3000
volumes:
- ./docker/grafana/datasources1.yml:/etc/grafana/provisioning/datasources/datasources.yml
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false