Jafner.net/homelab/stacks/unifi/docker-compose.yml
2024-10-08 11:54:29 -07:00

35 lines
1.1 KiB
YAML

services:
unifi-controller:
image: lscr.io/linuxserver/unifi-controller:latest
container_name: unifi_controller
restart: "no"
networks:
- web
environment:
PUID: "1000"
PGID: "1000"
MEM_LIMIT: "1024M"
MEM_STARTUP: "1024M"
volumes:
- ${DOCKER_DATA}/config:/config
ports:
- 3478:3478/udp # unifi STUN port
- 10001:10001/udp # AP discovery port
- 8080:8080 # communicate with devices
#- 8443:8443 # web admin port
#- 1900:1900/udp # discoverability on layer 2
- 8843:8843 # guest portal http
- 8880:8880 # guest portal https
- 6789:6789 # mobile throughput test port
- 5514:5514/udp # remote syslog
labels:
- traefik.http.routers.unifi.rule=Host(`unifi.jafner.net`)
- traefik.http.routers.unifi.tls.certresolver=lets-encrypt
- traefik.http.routers.unifi.tls=true
- traefik.http.routers.unifi.middlewares=lan-only@file
- traefik.http.services.unifi.loadbalancer.server.port=8443
- traefik.http.services.unifi.loadbalancer.server.scheme=https
networks:
web:
external: true