Skip to content

Commit af68150

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

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,15 @@ services:
1515

1616
redis:
1717
image: redis
18-
command: [ "redis-server", "--requirepass", "${REDIS_PASSWORD}", "--appendonly", "yes" ]
18+
command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}"]
1919
ports:
2020
- "6379:6379"
2121
environment:
2222
- REDIS_PASSWORD=${REDIS_PASSWORD}
23-
volumes:
24-
- ./redis-data:/data
2523

2624
prometheus:
2725
image: prom/prometheus
2826
container_name: prometheus
29-
user: "65534:65534" # nobody 유저 (Prometheus 기본 실행 계정)
3027
volumes:
3128
- ./prometheus.yml:/etc/prometheus/prometheus.yml
3229
- ./prometheus-data:/prometheus
@@ -36,11 +33,11 @@ services:
3633
grafana:
3734
image: grafana/grafana
3835
container_name: grafana
39-
user: "472:472" # grafana 기본 실행 계정
4036
environment:
4137
- GF_SECURITY_ADMIN_USER=admin
4238
- GF_SECURITY_ADMIN_PASSWORD=admin
4339
volumes:
4440
- ./grafana-data:/var/lib/grafana
4541
ports:
4642
- "3000:3000"
43+

0 commit comments

Comments
 (0)