scripts/wind/docker/grafana.sh

30 lines
492 B
Bash
Raw Normal View History

2024-02-06 08:19:11 -05:00
#!/bin/bash
set -e
up () {
docker network create pew-net || true
# Exposed on port 3000 on pew-net
docker run \
--detach \
--name grafana \
--restart unless-stopped \
--user 1000 \
2024-09-02 16:54:16 -04:00
--env GF_SERVER_ROOT_URL=https://gr.seaturtle.pw \
2024-02-06 08:19:11 -05:00
--volume /bigdata/ha/grafana:/var/lib/grafana:rw \
--network pew-net \
grafana/grafana-oss:latest
}
down () {
docker stop grafana || true
docker rm grafana || true
}
logs () {
docker logs --follow grafana
}
$@