Skip to content

Instantly share code, notes, and snippets.

@lazyfrosch
Created May 30, 2020 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazyfrosch/142ba4bbfad6bfb4d337f323051bb836 to your computer and use it in GitHub Desktop.
Save lazyfrosch/142ba4bbfad6bfb4d337f323051bb836 to your computer and use it in GitHub Desktop.
Unifi Controller in Docker

Unifi Controller in Docker

Image: https://hub.docker.com/r/jacobalberty/unifi

Usage

mkdir -p ~/docker/unifi
cd ~/docker/unifi
vim docker-compose.yml

docker-compose pull
docker-compose up -d

To update the image, just repeat pull and up -d

version: '2'
services:
unifi:
restart: always
image: jacobalberty/unifi
hostname: HOSTNAME
container_name: unifi
network_mode: host
environment:
TZ: Europe/Berlin
RUNAS_UID0: 'false'
user: unifi
volumes:
- data:/var/lib/unifi
- logs:/var/log/unifi
mem_limit: 512m
volumes:
data:
logs:
@bodsch
Copy link

bodsch commented May 30, 2020

Meines schaut so aus:

---
version: "2"
services:
  unifi-controller:
    image: linuxserver/unifi-controller
    container_name: unifi-controller
    environment:
      - PUID=1000
      - PGID=1000
      - MEM_LIMIT=1024M #optional
    volumes:
      - ./data:/config:rw
    ports:
      - 3478:3478/udp
      - 10001:10001/udp
      - 8080:8080
      - 8081:8081
      - 8443:8443
      - 8843:8843
      - 8880:8880
      - 6789:6789
    restart: unless-stopped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment