[a] add UniFi controller service with Docker Compose

This commit is contained in:
Sangelo 2025-03-14 14:34:13 +01:00
parent e098e09e12
commit 1b59bd1f85
2 changed files with 29 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
*.bkp
aufgaben/unifi/data/

View file

@ -0,0 +1,28 @@
services:
unifi:
image: jacobalberty/unifi:latest
container_name: unifi
restart: unless-stopped
environment:
- TZ=Europe/Zurich
- RUNAS_UID0=false
# Uncomment to use custom UID/GID
# - UNIFI_UID=1000
# - UNIFI_GID=1000
volumes:
- ./data:/unifi
ports:
- "3478:3478/udp" # STUN
- "6789:6789" # Speed test
- "8080:8080" # Device communication
- "8443:8443" # Web UI
- "8843:8843" # HTTPS portal
- "8880:8880" # HTTP portal
- "10001:10001/udp" # Device discovery
networks:
- unifi_network
networks:
unifi_network:
driver: bridge