69 lines
1.7 KiB
Plaintext
69 lines
1.7 KiB
Plaintext
|
---
|
||
|
version: "3.7"
|
||
|
|
||
|
|
||
|
networks:
|
||
|
unifi:
|
||
|
name: unifi
|
||
|
driver: overlay
|
||
|
ipam:
|
||
|
driver: default
|
||
|
config:
|
||
|
- subnet: {{ omni_compose_apps.unifi.networks.main }}
|
||
|
|
||
|
|
||
|
volumes:
|
||
|
unifi-data:
|
||
|
name: datastore{{ omni_compose_apps.unifi.datastore }}
|
||
|
driver: glusterfs
|
||
|
|
||
|
|
||
|
services:
|
||
|
wlc:
|
||
|
image: jacobalberty/unifi:{{ omni_compose_apps.unifi.versions.default }}
|
||
|
hostname: en1-unifi-wlc
|
||
|
init: true
|
||
|
networks:
|
||
|
- unifi
|
||
|
ports:
|
||
|
- published: {{ omni_compose_apps.unifi.published.ports.8080 }}
|
||
|
target: 8080
|
||
|
protocol: tcp
|
||
|
mode: ingress
|
||
|
- published: {{ omni_compose_apps.unifi.published.ports.8443 }}
|
||
|
target: 8443
|
||
|
protocol: tcp
|
||
|
mode: ingress
|
||
|
- published: {{ omni_compose_apps.unifi.published.ports.8843 }}
|
||
|
target: 8843
|
||
|
protocol: tcp
|
||
|
mode: ingress
|
||
|
- published: {{ omni_compose_apps.unifi.published.ports.8880 }}
|
||
|
target: 8880
|
||
|
protocol: tcp
|
||
|
mode: ingress
|
||
|
- published: {{ omni_compose_apps.unifi.published.ports.3478 }}
|
||
|
target: 3478
|
||
|
protocol: udp
|
||
|
mode: ingress
|
||
|
- published: {{ omni_compose_apps.unifi.published.ports.6789 }}
|
||
|
target: 6789
|
||
|
protocol: tcp
|
||
|
mode: ingress
|
||
|
- published: {{ omni_compose_apps.unifi.published.ports.10001 }}
|
||
|
target: 10001
|
||
|
protocol: udp
|
||
|
mode: ingress
|
||
|
volumes:
|
||
|
- type: volume
|
||
|
source: unifi-data
|
||
|
target: /unifi
|
||
|
read_only: false
|
||
|
environment:
|
||
|
RUNAS_UID0: "false"
|
||
|
UNIFI_UID: "{{ omni_compose_apps.unifi.account.uid }}"
|
||
|
UNIFI_GID: "{{ omni_compose_apps.unifi.account.uid }}"
|
||
|
TZ: "Americas/New_York"
|
||
|
deploy:
|
||
|
replicas: 1
|