containerized-monitoring/run.sh

27 lines
775 B
Bash
Raw Normal View History

2024-04-24 22:11:05 +00:00
#!/bin/bash
echo "**** Building latest monitoring container ****"
2024-04-24 22:11:05 +00:00
$(pwd)/build.sh
echo "**** Deleting existing container ****"
2024-04-24 22:11:05 +00:00
sudo docker rm -f munin
echo "**** Running monitoring ****"
2024-04-24 22:11:05 +00:00
sudo docker run -itd \
--restart unless-stopped \
--network services \
--name containerized-monitoring \
2024-04-24 22:11:05 +00:00
-e TZ=UTC \
-e DEBUG=1 \
-p 2813:2813/tcp \
-l diun.enable=true \
-l traefik.enable=false \
-v /var/containerized-monitoring/munin:/opt/munin \
2024-04-24 22:11:05 +00:00
--mount type=tmpfs,destination=/opt/munin/www \
--mount type=tmpfs,destination=/opt/munin/log \
--mount type=tmpfs,destination=/opt/munin/run \
--mount type=tmpfs,destination=/opt/munin/cgi-tmp \
containerized-monitoring:latest
docker logs -f --since=1m containerized-monitoring