From 3268d4474eea18568a9e60f62df32aa6a05c5f09 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 21 Oct 2019 20:30:12 +0200 Subject: docker --- docker/unifi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 docker/unifi (limited to 'docker/unifi') diff --git a/docker/unifi b/docker/unifi new file mode 100755 index 0000000..362eda8 --- /dev/null +++ b/docker/unifi @@ -0,0 +1,30 @@ +#!/bin/bash + +# https://github.com/linuxserver/docker-unifi-controller + +set -x + +docker pull linuxserver/unifi-controller + +docker stop unifi-controller +docker rm unifi-controller + +docker create \ + --name=unifi-controller \ + -e PUID=1000 \ + -e PGID=1000 \ + -e MEM_LIMIT=1024M `#optional` \ + -p 3478:3478/udp \ + -p 10001:10001/udp \ + -p 8080:8080 \ + -p 8081:8081 \ + -p 8443:8443 \ + -p 8843:8843 \ + -p 8880:8880 \ + -p 6789:6789 \ + -v unifi-controller-data:/config \ + --restart unless-stopped \ + linuxserver/unifi-controller + +docker start unifi-controller +docker image prune -- cgit v1.2.3