-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
67 lines (65 loc) · 1.93 KB
/
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
---
services:
unifi-network-application:
image: lscr.io/linuxserver/unifi-network-application:latest
container_name: unifi-network-application
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Prague
- MONGO_USER=unifi
- MONGO_PASS=${MONGO_PASSWORD}
- MONGO_HOST=unifi-db
- MONGO_PORT=27017
- MONGO_DBNAME=unifi
- MEM_LIMIT=1024 #optional
- MEM_STARTUP=1024 #optional
- MONGO_TLS= #optional
- MONGO_AUTHSOURCE= #optional
volumes:
- ./data/unifi-network-application/data:/config
ports:
- 8443:8443
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 1900:1900/udp #optional
- 8843:8843 #optional
- 8880:8880 #optional
- 6789:6789 #optional
- 5514:5514/udp #optional
restart: unless-stopped
depends_on:
unifi-db:
condition: service_healthy
unifi-db:
image: docker.io/mongo:7.0.12-jammy
container_name: unifi-db
environment:
- MONGO_DBNAME=unifi
- MONGO_USER=unifi
- MONGO_PASS=${MONGO_PASSWORD}
volumes:
- ./data/mongo/db:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
restart: unless-stopped
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
## Note: Uncomment for dbgate - web based database manager to access the unifi database
# dbgate:
# image: dbgate/dbgate:5.3.1-alpine
# restart: unless-stopped
# ports:
# - 8444:3000
# volumes:
# - ./data/dbgate-data:/root/.dbgate
# depends_on:
# unifi-db:
# condition: service_healthy
# environment:
# CONNECTIONS: mongo
# LABEL_mongo: MongoDB
# URL_mongo: mongodb://unifi-db:27017
# ENGINE_mongo: mongo@dbgate-plugin-mongo
# USER_mongo: unifi
# PASSWORD_mongo: ${MONGO_PASSWORD}