diff --git a/docker-compose.yml b/docker-compose.yml index 5c5fe66..3de8eb4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -78,7 +78,7 @@ services: - traefik.http.services.prometheus.loadbalancer.server.port=9090 volumes: - ${REPO_DIR}/configurations/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro - - ${STORAGE_DIR}/prometheus:/prometheus:rw + - prometheus-data:/prometheus:rw command: - '--config.file=/etc/prometheus/prometheus.yml' - '--storage.tsdb.path=/prometheus' @@ -125,3 +125,5 @@ services: # Only enable if external services present # ports: # - 4317:4317 # OTLP gRPC receiver +volumes: + prometheus-data: