unguix/prom0-home-rekahsoft-ca/prometheus.sh: Persist metrics

Adjust folder structure of bind mounts so metrics collected by prometheus are persisted
between container removals.

Note: the directory /var/lib/prometheus/data must be owned by `nobody:nogroup` for this to
work
This commit is contained in:
Collin J. Doering 2023-03-04 16:04:19 -05:00
parent 8c65c1c57d
commit 2c31aa981a
Signed by: rekahsoft
GPG Key ID: 7B4DEB93212B3022
1 changed files with 2 additions and 1 deletions

View File

@ -4,5 +4,6 @@ docker run -d \
--name prometheus \
--restart unless-stopped \
-p 9090:9090 \
-v /var/lib/prometheus:/etc/prometheus \
-v /var/lib/prometheus/etc:/etc/prometheus \
-v /var/lib/prometheus/data:/prometheus \
docker.nexus.home.rekahsoft.ca/prom/prometheus:v2.42.0