This commit is contained in:
2024-12-06 11:29:37 +01:00
parent ffc6af27e3
commit 68b4fd8d8f
5 changed files with 28 additions and 3 deletions

View File

@@ -1,17 +1,16 @@
---
version: '3'
services:
prometheus:
container_name: ${PROMETHEUS_CONTAINER_NAME:-prometheus}
hostname: prometheus
image: ${PROMETHEUS_IMAGE:-docker.io/containrrr/prometheus}:${PROMETHEUS_TAG:-latest}
image: ${PROMETHEUS_IMAGE:-docker.io/prom/prometheus}:${PROMETHEUS_TAG:-latest}
restart: unless-stopped
networks:
- prometheus-net
volumes:
- "${BASE_DIR:?err}/${PROMETHEUS_CONTAINER_NAME}/etc:/etc/prometheus:Z,rw"
# ownership: nobody:nobody
- "${BASE_DIR}/${PROMETHEUS_CONTAINER_NAME}/data:/prometheus:Z,rw"
ports:
- "127.0.0.1:9090:9090"