Skip to content

Instantly share code, notes, and snippets.

@shmick
Created November 11, 2019 18:43
Show Gist options
  • Save shmick/f381f84b12b34cd17860f8209c9e491c to your computer and use it in GitHub Desktop.
Save shmick/f381f84b12b34cd17860f8209c9e491c to your computer and use it in GitHub Desktop.
# $ cat docker-compose.yml
version: '2'
services:
unifi:
image: ryansch/unifi-rpi:latest
container_name: unifi
restart: always
network_mode: host
volumes:
# Unifi v5.0.7 creates all of these directories (some remain empty)
- config:/var/lib/unifi
- log:/usr/lib/unifi/logs
- log2:/var/log/unifi
- run:/usr/lib/unifi/run
- run2:/run/unifi
- work:/usr/lib/unifi/work
volumes:
config:
driver: local
log:
driver: local
log2:
driver: local
run:
driver: local
run2:
driver: local
work:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment