add unifi

master
Paul Walko 2021-07-18 15:05:53 -04:00
parent 0f778e4cf1
commit fba5214ec1
1 changed files with 29 additions and 0 deletions

29
fogcutter/docker/unifi.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
set -e
up () {
docker run \
--detach \
--name unifi \
--restart unless-stopped \
--env PUID=1000 \
--env GUID=1000 \
--volume /bigdata/k8s-config/unifi/config:/config:rw \
--publish 3478:3478/udp \
--publish 10001:10001/udp \
--publish 8080:8080/tcp \
--publish 8443:8443/tcp \
ghcr.io/linuxserver/unifi-controller:6.2.26-ls116
}
down () {
docker stop unifi || true
docker rm unifi || true
}
logs () {
docker logs --follow unifi
}
$@