diff --git a/wind/docker/esphome.sh b/wind/docker/esphome.sh index edf32f3..5e9f4c0 100755 --- a/wind/docker/esphome.sh +++ b/wind/docker/esphome.sh @@ -9,7 +9,7 @@ up () { docker run \ --detach \ --name esphome \ - --restart unless-stopped \ + --restart always \ --env ESPHOME_DASHBOARD_USE_PING=true \ --env USERNAME=paul \ --env PASSWORD=paulwalko \ diff --git a/wind/docker/grafana.sh b/wind/docker/grafana.sh index 1507c27..e37e9b9 100755 --- a/wind/docker/grafana.sh +++ b/wind/docker/grafana.sh @@ -11,6 +11,7 @@ up () { --name grafana \ --restart unless-stopped \ --user 1000 \ + --env GF_SERVER_ROOT_URL=https://gr.seaturtle.pw \ --volume /bigdata/ha/grafana:/var/lib/grafana:rw \ --network pew-net \ grafana/grafana-oss:latest diff --git a/wind/docker/plex.sh b/wind/docker/plex.sh index 8bd408a..c6ec9ae 100755 --- a/wind/docker/plex.sh +++ b/wind/docker/plex.sh @@ -12,7 +12,7 @@ up () { --restart unless-stopped \ --env PUID=1000 \ --env PGID=1000 \ - --env PLEX_CLAIM=claim-rQJqKnhLEPWJS8hH16jU \ + --env PLEX_CLAIM=claim-G7h1y2AkupBbyvyF5RzP \ --env VERSION=docker \ --device /dev/dri:/dev/dri:rw \ --volume /bigdata/plex/config:/config:rw \ diff --git a/wind/docker/unifi.sh b/wind/docker/unifi.sh new file mode 100755 index 0000000..f4019bc --- /dev/null +++ b/wind/docker/unifi.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +set -e + +up () { + docker network create pew-net || true + + docker run \ + --detach \ + --restart unless-stopped \ + --name unifi \ + --env PUID=1000 \ + --env PGID=1000 \ + --env TZ=Etc/UTC \ + --env MONGO_USER=unifi \ + --env MONGO_PASS=unifi \ + --env MONGO_HOST=unifi-db \ + --env MONGO_PORT=27017 \ + --env MONGO_DBNAME=unifi \ + --publish 3478:3478/udp \ + --publish 10001:10001/udp \ + --publish 8080:8080 \ + --volume /bigdata/unifi/data:/config:rw \ + --network pew-net \ + lscr.io/linuxserver/unifi-network-application:latest + + docker run \ + --detach \ + --name unifi-db \ + --restart unless-stopped \ + --volume /bigdata/unifi/db/data:/data/db:rw \ + --volume /bigdata/unifi/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro \ + --network pew-net \ + docker.io/mongo:4.4 +} + +down () { + docker stop unifi || true + docker rm unifi || true + docker stop unifi-db || true + docker rm unifi-db || true +} + +$@