-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 1.2 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
services:
mysql:
image: mysql
container_name: developer-guide-mysql
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_DATABASE=dev_guide
- MYSQL_USER=dev
- MYSQL_PASSWORD=dev.password
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- ./init-docker/mysql:/docker-entrypoint-initdb.d
- ./.db-data/mysql:/var/lib/mysql
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./init-docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./.db-data/prometheus:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
grafana:
image: grafana/grafana
ports:
- "3000:3000"
volumes:
- ./.db-data/grafana:/var/lib/grafana
nginx:
image: nginx:latest
ports:
- "80:80" # 로컬 포트 8080을 컨테이너의 80번 포트와 매핑
volumes:
- ./init-docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro # Nginx 설정 파일
- ./application-web-mvc/src/main/resources/static:/usr/share/nginx/html:ro