Skip to content

Instantly share code, notes, and snippets.

@coffeegist
Last active April 25, 2019 13:05
Show Gist options
  • Save coffeegist/3384e907a1333f868fd7b90b5224f7c7 to your computer and use it in GitHub Desktop.
Save coffeegist/3384e907a1333f868fd7b90b5224f7c7 to your computer and use it in GitHub Desktop.
Unifi Controller Notes

See systems conf for credentials

Running Unifi Controller for the First Time

mkdir -p ~/unifi/data 

mkdir ~/unifi/logs

docker run -d --net=host -e TZ='America/New_York' -v ~/unifi/data:/var/lib/unifi -v ~/unifi/logs:/var/log/unifi -p 8080:8080 -p 8443:8443 -p 8843:8843 -p 8880:8880 -p 3478:3478/udp -p 6789:6789 -p 10001:10001/udp --name unifi-current jacobalberty/unifi:stable

Upgrading Unifi Controller

docker stop unifi-current
docker stop unifi-current

docker run -d --net=host -e TZ='America/New_York' -v ~/unifi/data:/var/lib/unifi -v ~/unifi/logs:/var/log/unifi -p 8080:8080 -p 8443:8443 -p 8843:8843 -p 8880:8880 -p 3478:3478/udp -p 6789:6789 -p 10001:10001/udp --name unifi-current jacobalberty/unifi:stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment