This commit is contained in:
2025-12-03 13:36:24 +01:00
parent 9b22c4c10b
commit bafd39b0cd
2 changed files with 6 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ docker run --detach --name prometheus \
-p "9090:9090" \
-v prometheus:/prometheus \
-v ./prometheus:/etc/prometheus/targets \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-l "caddy=prometheus.localhost" \
-l "caddy.reverse_proxy={{upstreams 9090}}" \
-l "caddy.tls=internal" \
@@ -122,7 +123,7 @@ docker run --detach --name prometheus \
- source: prometheus_config
target: /etc/prometheus/prometheus.yml
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
-
extra_hosts:
- host.docker.internal=host-gateway

4
prometheus/pompe.yml Normal file
View File

@@ -0,0 +1,4 @@
- labels:
job: pompe
targets:
- "localhost:8099"