mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-25 04:51:13 +00:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
|
version: "2.1"
|
||
|
|
||
|
services:
|
||
|
unifi-network-application:
|
||
|
image: lscr.io/linuxserver/unifi-network-application:latest
|
||
|
container_name: unifi-network-application
|
||
|
environment:
|
||
|
- PUID=1000
|
||
|
- PGID=1000
|
||
|
- TZ=Etc/UTC
|
||
|
- MONGO_USER=unifi
|
||
|
- MONGO_PASS=unifi
|
||
|
- MONGO_HOST=unifi-db
|
||
|
- MONGO_PORT=27017
|
||
|
- MONGO_DBNAME=unifi-db
|
||
|
- MEM_LIMIT=1024 #optional
|
||
|
- MEM_STARTUP=1024 #optional
|
||
|
volumes:
|
||
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/unifi-network-application/config:/config
|
||
|
depends_on:
|
||
|
- unifi-db
|
||
|
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
|
||
|
|
||
|
unifi-db:
|
||
|
image: mongo:4.4
|
||
|
container_name: unifi-network-application-mongodb
|
||
|
restart: unless-stopped
|
||
|
expose:
|
||
|
- 27017
|
||
|
environment:
|
||
|
- MONGO_INITDB_DATABASE=unifi-db
|
||
|
volumes:
|
||
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/unifi-network-application/mongodb_data:/data/db
|
||
|
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
|