From 9a1cfbe51e00b935b0c567675fb4904cc9b23e4a Mon Sep 17 00:00:00 2001 From: James Date: Sat, 28 May 2022 14:26:41 +0100 Subject: [PATCH] add initial docker-compose files --- .env | 6 ++++++ docker-compose.yaml | 20 ++++++++++++++++++++ example.env | 6 ++++++ 3 files changed, 32 insertions(+) create mode 100644 .env create mode 100644 docker-compose.yaml create mode 100644 example.env diff --git a/.env b/.env new file mode 100644 index 0000000..67259a4 --- /dev/null +++ b/.env @@ -0,0 +1,6 @@ +VOLUME_PATH=/data/unifi +TAG=latest +PUID=1000 +PGID=1000 +HTTP_PORT=80 +HTTPS_PORT=443 \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..82551d4 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,20 @@ +services: + unifi-controller: + container_name: unifi-controller + image: lscr.io/linuxserver/unifi-controller:${TAG} + restart: unless-stopped + volumes: + - ${VOLUME_PATH}:/config + environment: + PUID: ${PUID} + PGID: ${PGID} + ports: + - 3478:3478/udp + - 10001:10001/udp + - ${HTTP_PORT}:8080 + - ${HTTPS_PORT}:8443 + - 1900:1900/udp + - 8843:8843 + - 8880:8880 + - 6789:6789 + - 5514:5514/udp \ No newline at end of file diff --git a/example.env b/example.env new file mode 100644 index 0000000..67259a4 --- /dev/null +++ b/example.env @@ -0,0 +1,6 @@ +VOLUME_PATH=/data/unifi +TAG=latest +PUID=1000 +PGID=1000 +HTTP_PORT=80 +HTTPS_PORT=443 \ No newline at end of file