Collin J. Doering
2c31aa981a
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
10 lines
251 B
Bash
10 lines
251 B
Bash
#!/usr/bin/env bash
|
|
|
|
docker run -d \
|
|
--name prometheus \
|
|
--restart unless-stopped \
|
|
-p 9090:9090 \
|
|
-v /var/lib/prometheus/etc:/etc/prometheus \
|
|
-v /var/lib/prometheus/data:/prometheus \
|
|
docker.nexus.home.rekahsoft.ca/prom/prometheus:v2.42.0
|