-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunifi-controller.yaml
executable file
·67 lines (67 loc) · 1.86 KB
/
unifi-controller.yaml
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.7'
services:
mongo:
image: mongo:3.6
networks:
- unifi
volumes:
- type: bind
source: '/home/bwing/volumes/unifi_db/_data'
target: '/data/db'
- type: bind
source: '/home/bwing/volumes/unifi_dbcfg/_data'
target: '/data/configdb'
controller:
image: jacobalberty/unifi:v7.4
depends_on:
- mongo
networks:
- unifi
volumes:
- type: bind
source: '/home/bwing/volumes/unifi_dir/_data'
target: '/unifi'
- type: bind
source: '/home/bwing/volumes/unifi_data/_data'
target: '/unifi/data'
- type: bind
source: '/home/bwing/volumes/unifi_log/_data'
target: '/unifi/log'
- type: bind
source: '/home/bwing/volumes/unifi_cert/_data'
target: '/unifi/cert'
- type: bind
source: '/home/bwing/volumes/unifi_init/_data'
target: '/unifi/init.d'
- type: bind
source: '/home/bwing/volumes/unifi_run/_data'
target: '/var/run/unifi'
- type: bind
source: '/home/bwing/volumes/unifi_backup'
target: '/unifi/data/backup'
user: unifi
sysctls:
net.ipv4.ip_unprivileged_port_start: 0
environment:
DB_URI: mongodb://mongo/unifi
STATDB_URI: mongodb://mongo/unifi_stat
DB_NAME: unifi
ports:
- "3478:3478/udp" # STUN
- "6789:6789/tcp" # Speed test
- "8080:8080/tcp" # Device/ controller comm.
- "9001:8443/tcp" # Controller GUI/API as seen in a web browser
- "8880:8880/tcp"
- "8843:8843/tcp" # HTTPS portal redirection
- "10001:10001/udp" # AP discovery
logs:
image: bash
depends_on:
- controller
command: bash -c 'tail -F /unifi/log/*.log'
volumes:
- type: bind
source: '/home/bwing/volumes/unifi_log/_data'
target: '/unifi/log'
networks:
unifi: