1
0

docker-compose.yml 856 B

12345678910111213141516171819202122232425262728293031323334
  1. # Docker Compose file for UniFi
  2. # Instructions:
  3. # - Add a "unifi" system user: "useradd -r unifi"
  4. # - Copy the UID and GID here: "id unifi"
  5. # - Allow the ports through the firewall.
  6. version: "3.7"
  7. services:
  8. unifi:
  9. image: jacobalberty/unifi:stable
  10. container_name: unifi
  11. restart: unless-stopped
  12. init: true
  13. environment:
  14. - RUNAS_UID0=false
  15. - UNIFI_UID=
  16. - UNIFI_GID=
  17. - TZ=Europe/Oslo
  18. volumes:
  19. - /srv/unifi/data:/unifi/data
  20. - /srv/unifi/log:/unifi/log
  21. ports:
  22. # See https://help.ubnt.com/hc/en-us/articles/218506997-UniFi-Ports-Used
  23. - "3478:3478/udp"
  24. - "8080:8080"
  25. - "8443:8443"
  26. - "8880:8880"
  27. - "8843:8843"
  28. - "6789:6789"
  29. - "10001:10001/udp"
  30. - "1900:1900/udp"
  31. # Or use host network mode instead of publishing ports (required for L2 adoption).
  32. network_mode: "host"