2021-12-14 01:11:48 +00:00
|
|
|
# The [Unifi-controller](https://www.ubnt.com/enterprise/#unifi) software is a
|
|
|
|
# powerful, enterprise wireless software engine ideal for high-density client
|
|
|
|
# deployments requiring low latency and high uptime performance.
|
2021-04-10 10:16:29 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
version: "2.1"
|
|
|
|
services:
|
|
|
|
unifi-controller:
|
|
|
|
image: ghcr.io/linuxserver/unifi-controller
|
|
|
|
container_name: unifi-controller
|
|
|
|
environment:
|
|
|
|
# for UserID
|
2022-04-02 00:45:58 +00:00
|
|
|
- PUID=${PUID:-1024}
|
|
|
|
# for GroupID
|
2021-04-10 10:16:29 +00:00
|
|
|
- PGID=${PGID:-100}
|
2021-12-25 01:08:06 +00:00
|
|
|
# Optionally change the Java memory limit. Set to `default` to reset to default
|
|
|
|
- MEM_LIMIT=1024 # optional
|
|
|
|
# Optionally change the Java initial/minimum memory. Set to `default` to reset to default
|
|
|
|
- MEM_STARTUP=1024 # optional
|
2021-04-10 10:16:29 +00:00
|
|
|
volumes:
|
|
|
|
# All Unifi data stored here
|
|
|
|
- ${BASEDIR:-/volume1/docker}/unifi-controller/config:/config
|
|
|
|
ports:
|
2022-03-28 00:48:46 +00:00
|
|
|
# Unifi web admin port
|
|
|
|
- 8443:8443
|
2021-04-10 10:16:29 +00:00
|
|
|
# Unifi STUN port
|
|
|
|
- 3478:3478/udp
|
|
|
|
# Required for AP discovery
|
|
|
|
- 10001:10001/udp
|
|
|
|
# Required for device communication
|
|
|
|
- 8080:8080
|
|
|
|
# Required for `Make controller discoverable on L2 network` option
|
|
|
|
- 1900:1900/udp # optional
|
|
|
|
# Unifi guest portal HTTPS redirect port
|
|
|
|
- 8843:8843 # optional
|
|
|
|
# Unifi guest portal HTTP redirect port
|
|
|
|
- 8880:8880 # optional
|
|
|
|
# For mobile throughput test
|
|
|
|
- 6789:6789 # optional
|
|
|
|
# Remote syslog port
|
|
|
|
- 5514:5514/udp # optional
|
|
|
|
restart: unless-stopped
|