From fba5214ec1440137eed30235c078454e961e4062 Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Sun, 18 Jul 2021 15:05:53 -0400 Subject: [PATCH] add unifi --- fogcutter/docker/unifi.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 fogcutter/docker/unifi.sh diff --git a/fogcutter/docker/unifi.sh b/fogcutter/docker/unifi.sh new file mode 100755 index 0000000..7600566 --- /dev/null +++ b/fogcutter/docker/unifi.sh @@ -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 +} + +$@