I’m working on running a Unquiti Unifi Controller in an Ubuntu VM running docker and have used a the following docker-compose to build this container. I do currently have the the Unifi Controller working using their Ubuntu / Debian installer into a different base Ubuntu VM (not running docker).
The issue that I’m having is with the Layer 2 discovery protocol, that detects Unifi devices in the same network. The container runs and I can get to it but no devices get automatically discovered.
It looks like others may have gotten this to work.
version: "2.4" services: Unifi: container_name: Unifi environment: - PGID=100 - PUID=1025 - TZ=Asia/Bangkok image: linuxserver/unifi-controller:latest restart: unless-stopped volumes: - unifi_config:/config network_mode: host volumes: unifi_config: external: true