Add prometheus/docker-compose.yml

This commit is contained in:
2026-04-27 09:58:43 +01:00
parent 0f21e90ba2
commit fa227e0f5e

View File

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