Update prometheus/docker-compose.yml

This commit is contained in:
2026-04-09 00:01:45 +01:00
parent dbb5878e4f
commit 3dfd27030d

View File

@@ -1,12 +1,17 @@
# This ia a reference copy only; use docker-compose up -d from /home/john/docker/prometheus
#
services: services:
prometheus: prometheus:
image: prom/prometheus image: prom/prometheus:latest
# container_name: prometheus container_name: prometheus
command: command:
- '--config.file=/etc/prometheus/prometheus.yml' - '--config.file=/etc/prometheus/prometheus.yml'
ports: ports:
- 9090:9090 - 9090:9090
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- /mnt/cephfs/docker/prometheus/config:/etc/prometheus - ./prometheus:/etc/prometheus
- /mnt/cephfs/docker/prometheus/prom_data:/prometheus - prom_data:/prometheus
volumes:
prom_data: