-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (35 loc) · 975 Bytes
/
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
services:
unifi-net-app-db:
image: mongo:7.0
container_name: ${CONTAINER_NAME}_DB
environment:
- MONGO_USER=${MONGO_USER}
- MONGO_PASS=${MONGO_PASS}
- MONGO_DBNAME=${MONGO_DBNAME}
- MONGO_DBNAMESTAT=${MONGO_DBNAME}_stat
volumes:
- ./init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro
- ./db-data/db:/data/db
restart: unless-stopped
unifi-net-app-core:
image: lscr.io/linuxserver/unifi-network-application:latest
container_name: ${CONTAINER_NAME}_CORE
depends_on:
- unifi-net-app-db
environment:
- TZ=${TIME_ZONE}
- MONGO_USER=${MONGO_USER}
- MONGO_PASS=${MONGO_PASS}
- MONGO_HOST=${CONTAINER_NAME}_DB
- MONGO_PORT=27017
- MONGO_DBNAME=${MONGO_DBNAME}
volumes:
- ./core-data:/config
ports:
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 8443:8443
- 8843:8843
- 8880:8880
restart: unless-stopped