Added unifi-controller

This commit is contained in:
Mike Wilson
2023-03-13 16:11:49 -04:00
parent 62052e31e7
commit 98067b6714
3 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
version: "{{ docker_compose_version }}"
networks:
traefik:
external: true
services:
tautulli:
container_name: unifi-controller
image: lscr.io/linuxserver/unifi-controller:latest
restart: unless-stopped
networks:
- traefik
ports:
- 8443:8443 # WebUI
- 3478:3478/udp # STUN
- 10001:10001/udp # AP discovery
- 8080:8080 # Device communication
environment:
- "PUID={{ service_user.uid }}"
- "PGID={{ service_user.uid }}"
- "TZ={{ timezone }}"
volumes:
- "{{ data_dir }}/{{ role_name }}:/config"
labels:
traefik.enable: true
traefik.http.routers.unifi.rule: "Host(`unifi.local.{{ personal_domain }}`)"
traefik.http.routers.unifi.middlewares: lan-whitelist@file