-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.42 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
services:
backend:
image: ${DOCKERHUB_USERNAME}/checkmate-be:latest
container_name: checkmate-be
env_file: .env
environment:
- TZ=Asia/Seoul
- SPRING_PROFILES_ACTIVE=prod
- JAVA_TOOL_OPTIONS=-Duser.timezone=Asia/Seoul
ports:
- "8080:8080"
restart: always
networks:
- checkmate-net
nginx:
image: nginx:latest
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/certs:/etc/nginx/certs:ro
depends_on:
- backend
restart: always
networks:
- checkmate-net
prometheus:
image: prom/prometheus:latest
extra_hosts:
- "db-server:${DB_HOST}"
- "redis-server:${REDIS_HOST}"
container_name: prometheus
restart: always
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
ports:
- "9090:9090"
networks:
- checkmate-net
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: always
environment:
- GF_SERVER_ROOT_URL=https://api-check-mate.kro.kr/grafana/
- GF_SERVER_SERVE_FROM_SUB_PATH=true
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
networks:
- checkmate-net
networks:
checkmate-net:
driver: bridge
volumes:
prometheus-data:
grafana-data: