-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
115 lines (105 loc) · 2.05 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
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
110
111
112
113
114
115
version: "3"
services:
backend:
build: ./backend
container_name: backend
ports:
- 8080:8080
networks:
- backend
depends_on:
- db
- rabbitmq
env_file: .env
restart: always
tty: true
db:
image: mysql
container_name: db
ports:
- 3306:3306
env_file: .env
volumes:
- ./data:/var/lib/mysql
networks:
- backend
restart: always
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
entrypoint: >
/bin/bash -c "
rabbitmq-server &
sleep 20 && rabbitmq-plugins enable rabbitmq_web_stomp &
tail -f /dev/null
"
env_file: .env
ports:
- 5672:5672
- 15672:15672
- 61613:61613
volumes:
- data_rabbitmq:/rabbitmq
networks:
- backend
restart: always
tty: true
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
networks:
- backend
restart: always
tty: true
nginx:
build: ./nginx
container_name: nginx
ports:
- 80:80
restart: always
networks:
- backend
prometheus:
image: prom/prometheus
container_name: prometheus
restart: always
user: root
ports:
- 9090:9090
networks:
- backend
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/alert_rules.yml:/etc/prometheus/alert_rules.yml
- prometheus_config:/etc/prometheus
- prometheus_data:/prometheus
grafana:
image: grafana/grafana
container_name: grafana
restart: always
ports:
- 3000:3000
networks:
- backend
alertmanager:
image: prom/alertmanager
container_name: alertmanager
restart: always
user: root
ports:
- 9093:9093
volumes:
- ./prometheus/alertmanager.yml:/etc/alertmanager/alertmanager.yml
depends_on:
- backend
- prometheus
networks:
- backend
networks:
backend:
volumes:
data_rabbitmq: null
prometheus_data: null
prometheus_config: null