-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (68 loc) · 1.77 KB
/
docker-compose.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3.9'
services:
mongo:
image: mongo:7.0@sha256:8ff7333c6a9fbc00597fcce4c836e8bcc6b29fd34d49259479c43174e32d72be
hostname: mongo
container_name: unifi__mongo
restart: unless-stopped
volumes:
- type: volume
source: mongo_data
target: /data/db
command: --wiredTigerCacheSizeGB 1
deploy:
resources:
limits:
memory: 2048m
unifi:
image: goofball222/unifi:8.6.9@sha256:1e514c1dd6103fdaff5b5c0b2bb01e28a900649d5a2151330e47220fc345d816
hostname: unifi
container_name: unifi__unifi
restart: unless-stopped
environment:
- TZ=JST
- DB_MONGO_LOCAL=false
- DB_MONGO_URI=mongodb://mongo:27017/unifi
- STATDB_MONGO_URI=mongodb://mongo:27017/unifi_stat
- UNIFI_DB_NAME=unifi
links:
- mongo
ports:
- '3478:3478/udp' # STUN
- '8080:8080' # Device Communication
- '8443:8443' # Web interface
- '8880:8880' # Guest hotspot (HTTP)
- '8843:8843' # Guest hotspot (HTTPS)
- '10001:10001/udp' # Device Discovery
volumes:
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
- type: volume
source: unifi_cert
target: /usr/lib/unifi/cert
- type: volume
source: unifi_data
target: /usr/lib/unifi/data
- type: volume
source: unifi_logs
target: /usr/lib/unifi/logs
networks:
- default
deploy:
resources:
limits:
memory: 2048m
volumes:
unifi_logs:
name: unifi__unifi_logs
unifi_cert:
name: unifi__unifi_cert
unifi_data:
name: unifi__unifi_data
mongo_data:
name: unifi__mongo_data
networks:
default:
name: unifi__default