-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
55 lines (55 loc) · 1.16 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
version: '3.8'
services:
app:
image: blue_anonymous_bot:latest
volumes:
- /var/log/blue-anonymous-bot:/var/log/blue-anonymous-bot
build:
context: .
dockerfile: Dockerfile
environment:
- MYSQL_HOST=db
ports:
- 8080:8080
depends_on:
- db
deploy:
replicas: 1
restart_policy:
condition: on-failure
db:
volumes:
- /var/lib/mysql:/var/lib/mysql
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=mkcenter
- MYSQL_DATABASE=blue_anonymous_bot
ports:
- 3306:3306
deploy:
replicas: 1
restart_policy:
condition: on-failure
prometheus:
image: prom/prometheus:latest
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- /var/lib/prometheus:/prometheus
deploy:
replicas: 1
restart_policy:
condition: on-failure
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
depends_on:
- prometheus
deploy:
replicas: 1
restart_policy:
condition: on-failure
volumes:
- /var/lib/grafana:/var/lib/grafana