2020-06-17 20:53:51 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Create data directories
|
|
|
|
file:
|
|
|
|
path: /var/lib/unifi
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Run unifi container
|
|
|
|
docker_container:
|
|
|
|
name: unifi
|
2021-09-04 18:25:05 +02:00
|
|
|
image: jacobalberty/unifi:6.1.71
|
2020-06-17 20:53:51 +02:00
|
|
|
env:
|
|
|
|
RUNAS_UID0: "false"
|
|
|
|
TZ: "Europe/Berlin"
|
|
|
|
init: yes
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
- "8443:8443"
|
|
|
|
- "3478:3478/udp"
|
|
|
|
- "10001:10001/udp"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
state: started
|
|
|
|
volumes:
|
|
|
|
- "/var/lib/unifi:/unifi"
|