Skip to content

Commit 000c834

Browse files
author
root
committed
observability setting init
0 parents  commit 000c834

File tree

3 files changed

+795
-0
lines changed

3 files changed

+795
-0
lines changed

docker-compose.yml

+25
Original file line numberDiff line numberDiff line change
@@ -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+
user: "root"
17+
ports:
18+
- 3000:3000 # 접근 포트 설정 (컨테이너 외부:컨테이너 내부)
19+
volumes:
20+
- '$HOME/grafana/config/grafana.ini:/etc/grafana/grafana.ini'
21+
restart: always
22+
network_mode: host
23+
depends_on:
24+
- prometheus
25+

0 commit comments

Comments
 (0)