-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathunifi.yml
67 lines (62 loc) · 2 KB
/
unifi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.3'
networks:
traefik-public:
external: true
swarm-macvlan1:
external: true
grafing:
external: true
services:
controller:
image: jacobalberty/unifi:v7.2
networks:
"swarm-macvlan1":
ipv4_address: 192.168.1.88
traefik-public:
default:
grafing:
environment:
TZ: "Europe/Copenhagen"
UNIFI_UID: 2000
UNIFI_GID: 2000
RUNAS_UID0: 'false'
volumes:
- /docker/unifi:/unifi
deploy:
placement:
constraints:
- node.labels.storage==yes
labels:
- traefik.enable=true
- "traefik.http.routers.unifi.rule=Host(`unifi.${BASE_HOST}`)"
- "traefik.http.routers.unifi.entrypoints=websecure"
- "traefik.http.routers.unifi.tls.certresolver=le"
- "traefik.http.routers.unifi.middlewares=unifiwhitelist"
- "traefik.http.routers.unifi.service=unifi"
- "traefik.http.services.unifi.loadbalancer.server.port=8443"
- "traefik.http.services.unifi.loadbalancer.server.scheme=https"
- "traefik.http.middlewares.unifiwhitelist.ipwhitelist.sourcerange=192.168.0.0/16"
- "traefik.http.routers.hotspot.rule=Host(`hotspot.${BASE_HOST}`)"
- "traefik.http.routers.hotspot.entrypoints=websecure"
- "traefik.http.routers.hotspot.tls.certresolver=le"
- "traefik.http.routers.hotspot.middlewares=hotspotwhitelist"
- "traefik.http.routers.hotspot.service=hotspot"
- "traefik.http.services.hotspot.loadbalancer.server.port=443"
- "traefik.http.services.hotspot.loadbalancer.server.scheme=https"
- "traefik.http.middlewares.hotspotwhitelist.ipwhitelist.sourcerange=10.10.10.0/24"
ports:
- 8080:8080
- 8443:8443
- 3478:3478/udp
- 6789:6789
- 10001:10001/udp
- 1900:1900/udp
# unpoller:
# image: golift/unifi-poller:latest
# networks:
# - grafing
# - default
# depends_on:
# - controller
# volumes:
# - /docker/unpoller:/config