We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0 parents commit 000c834Copy full SHA for 000c834
docker-compose.yml
@@ -0,0 +1,25 @@
1
+version: '3.8'
2
+services: # 이 항목 밑에 실행하려는 컨테이너 들을 정의
3
+ prometheus: # 서비스 명
4
+ image: prom/prometheus:latest # 사용할 이미지
5
+ container_name: prometheus # 컨테이너 이름 설정
6
+ user: "root"
7
+ ports:
8
+ - 9090:9090 # 접근 포트 설정 (컨테이너 외부:컨테이너 내부)
9
+ volumes:
10
+ - '$HOME/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml'
11
+ restart: always
12
+ network_mode: host
13
+ grafana:
14
+ image: grafana/grafana:latest # 사용할 이미지
15
+ container_name: grafana # 컨테이너 이름 설정
16
17
18
+ - 3000:3000 # 접근 포트 설정 (컨테이너 외부:컨테이너 내부)
19
20
+ - '$HOME/grafana/config/grafana.ini:/etc/grafana/grafana.ini'
21
22
23
+ depends_on:
24
+ - prometheus
25
+
0 commit comments