-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
103 lines (102 loc) · 2.15 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
version: '3'
networks:
app-network:
driver: bridge
services:
db:
image: mysql:8.4.0
networks:
- app-network
ports:
- "3306:3306"
env_file:
- .env
volumes:
- ./db:/var/lib/mysql
- ./sqls:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "mysql --user=root --password=$MYSQL_ROOT_PASSWORD --host=localhost --execute 'SHOW TABLES IN MEETING_SERVICE;'"]
redis:
image: redis:7.2.5
networks:
- app-network
ports:
- "6379:6379"
env_file:
- .env
command: redis-server --requirepass $REDIS_PASSWORD
volumes:
- ./redis:/data
backend:
build:
context: ./backend
dockerfile: Dockerfile
networks:
- app-network
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
env_file:
- .env
grafana:
image: grafana/grafana:11.0.0
ports:
- "3000:3000"
volumes:
- grafana-storage:/var/lib/grafana
env_file:
- .env
depends_on:
- prometheus
prometheus:
image: prom/prometheus:v2.52.0
ports:
- "9090:9090"
volumes:
- prometheus-data:/prometheus
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml
env_file:
- .env
command:
- --config.file=/etc/prometheus/prometheus.yaml
depends_on:
- backend
sql_exporter:
image: prom/mysqld-exporter:main
container_name: sql_exporter
ports:
- "9104:9104"
volumes:
- ./.my.cnf:/.my.cnf
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
command:
- '--path.rootfs=/host'
network_mode: host
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
ports:
- '9100:9100'
frontend:
image: meeting-center-frontend:lastest
build:
context: ./frontend
dockerfile: Dockerfile
networks:
- app-network
ports:
- '4200:80'
depends_on:
- backend
environment:
REACT_APP_BACKEND_URL: http://140.113.215.132:8080
volumes:
grafana-storage:
prometheus-data: