Skip to content

Commit aeecc45

Browse files
committed
[Chore] Add persistent volumes for Prometheus and Grafana, remove unnecessary depends_on
1 parent bcb5e79 commit aeecc45

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

docker-compose.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,21 @@ services:
2626
prometheus:
2727
image: prom/prometheus
2828
container_name: prometheus
29+
user: "65534:65534" # nobody 유저 (Prometheus 기본 실행 계정)
2930
volumes:
3031
- ./prometheus.yml:/etc/prometheus/prometheus.yml
31-
- ./prometheus-data:/prometheus # ← 영속 데이터 경로
32+
- ./prometheus-data:/prometheus
3233
ports:
3334
- "9090:9090"
3435

3536
grafana:
3637
image: grafana/grafana
3738
container_name: grafana
38-
ports:
39-
- "3000:3000"
39+
user: "472:472" # grafana 기본 실행 계정
4040
environment:
4141
- GF_SECURITY_ADMIN_USER=admin
4242
- GF_SECURITY_ADMIN_PASSWORD=admin
4343
volumes:
44-
- ./grafana-data:/var/lib/grafana # ← 영속 데이터 경로
44+
- ./grafana-data:/var/lib/grafana
45+
ports:
46+
- "3000:3000"

0 commit comments

Comments
 (0)