homelab/fighter/config/unifi_controller/docker-compose.yml

41 lines
1.3 KiB
YAML
Raw Normal View History

2022-02-08 17:00:27 -08:00
version: '3'
services:
unifi-controller:
image: lscr.io/linuxserver/unifi-controller
container_name: unifi_controller
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
2022-07-14 15:22:44 -07:00
keep-file: "true"
restart: "no"
2023-02-15 11:43:05 -08:00
networks:
- web
2022-11-01 00:35:38 -07:00
env_file:
- unifi_controller.env
2022-02-08 17:00:27 -08:00
volumes:
- ${DOCKER_DATA}/config:/config
ports:
- 3478:3478/udp # unifi STUN port
- 10001:10001/udp # AP discovery port
- 8080:8080 # communicate with devices
2023-02-15 11:41:10 -08:00
#- 8443:8443 # web admin port
2022-02-08 17:00:27 -08:00
#- 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
2023-02-15 11:41:10 -08:00
labels:
- traefik.http.routers.unifi.rule=Host(`unifi.jafner.net`)
- traefik.http.routers.unifi.tls.certresolver=lets-encrypt
2023-02-15 14:20:03 -08:00
- traefik.http.routers.unifi.tls=true
2023-02-15 11:52:09 -08:00
- traefik.http.routers.unifi.middlewares=lan-only@file
2023-02-15 11:41:10 -08:00
- traefik.http.services.unifi.loadbalancer.server.port=8443
- traefik.http.services.unifi.loadbalancer.server.scheme=https
2023-02-15 11:43:05 -08:00
networks:
web:
external: true