-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 972 Bytes
/
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
version: '3.7'
services: # 이 항목 밑에 실행하려는 컨테이너 들을 정의
prometheus: # 서비스 명
image: prom/prometheus:latest # 사용할 이미지
container_name: prometheus # 컨테이너 이름 설정
user: "root"
ports:
- 9090:9090
volumes:
- ~/prometheus/config/:/etc/prometheus/
- ~/prometheus/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
restart: always
network_mode: host
grafana:
image: grafana/grafana:latest
container_name: grafana
user: "root"
ports:
- 3000:3000
volumes:
- ~/grafana/config/grafana.ini:/etc/grafana/grafana.ini'
- ~/grafana/data:/var/lib/grafana
restart: always
depends_on:
- prometheus
network_mode: host
java:
image: joypark9/o11y-sample-app:latest
container_name: sample-app
user: "root"
ports:
- 8888:8888
restart: always
network_mode: host