add volumes to graphite podman
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 45m21s

This commit is contained in:
2025-03-12 16:41:56 -04:00
parent 7479bcd493
commit 2fbdde303a
2 changed files with 9 additions and 3 deletions

View File

@@ -6,11 +6,14 @@ Description=Graphite
ContainerName=graphite
Image=ghcr.io/deniszh/graphite-statsd
Network=systemd-graphite
PublishPort=127.0.0.1:8080:80
PublishPort=8080:80
PublishPort=2003-2004:2003-2004
PublishPort=2023-2024:2023-2024
PublishPort=8125:8125/udp
PublishPort=8126:8126
Volume=graphite_configs:/opt/graphite/conf
Volume=graphite_data:/opt/graphite/storage
Volume=graphite_statsd_config:/opt/statsd/config
[Service]
Restart=always

View File

@@ -20,6 +20,9 @@ podman run \
-p 2023-2024:2023-2024 \
-p 8125:8125/udp \
-p 8126:8126 \
-v graphite_configs:/opt/graphite/conf \
-v graphite_data:/opt/graphite/storage \
-v graphite_statsd_config:/opt/statsd/config \
ghcr.io/deniszh/graphite-statsd > podman/incubating/graphite/graphite.container
```
@@ -31,6 +34,6 @@ scp podman/incubating/graphite/graphite.network $PODMAN_SERVER:/etc/containers/s
scp podman/incubating/graphite/graphite.container $PODMAN_SERVER:/etc/containers/systemd/
ssh $PODMAN_SERVER systemctl daemon-reload
ssh $PODMAN_SERVER systemctl enable --now graphite.network
ssh $PODMAN_SERVER systemctl enable --now graphite.service
ssh $PODMAN_SERVER systemctl start graphite.network
ssh $PODMAN_SERVER systemctl start graphite.service
```