Add UniFi Docker Compose setup
This commit is contained in:
65
compose.yaml
Normal file
65
compose.yaml
Normal file
@ -0,0 +1,65 @@
|
||||
services:
|
||||
mongodb:
|
||||
image: mongo:4.4.18
|
||||
container_name: unifi-mongodb
|
||||
restart: unless-stopped
|
||||
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ADMIN_USER}
|
||||
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ADMIN_PASS}
|
||||
|
||||
MONGO_USER: ${MONGO_USER}
|
||||
MONGO_PASS: ${MONGO_PASS}
|
||||
MONGO_DBNAME: ${MONGO_DBNAME}
|
||||
MONGO_AUTHSOURCE: admin
|
||||
|
||||
volumes:
|
||||
- ./mongodb:/data/db
|
||||
- ./init-mongo/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro
|
||||
|
||||
networks:
|
||||
- unifi-internal
|
||||
|
||||
unifi:
|
||||
image: lscr.io/linuxserver/unifi-network-application:latest
|
||||
container_name: unifi
|
||||
restart: unless-stopped
|
||||
|
||||
depends_on:
|
||||
- mongodb
|
||||
|
||||
environment:
|
||||
PUID: 1002
|
||||
PGID: 1002
|
||||
TZ: Europe/Stockholm
|
||||
|
||||
MONGO_USER: ${MONGO_USER}
|
||||
MONGO_PASS: ${MONGO_PASS}
|
||||
MONGO_HOST: mongodb
|
||||
MONGO_PORT: 27017
|
||||
MONGO_DBNAME: ${MONGO_DBNAME}
|
||||
MONGO_AUTHSOURCE: admin
|
||||
|
||||
MEM_LIMIT: 2048
|
||||
MEM_STARTUP: 1024
|
||||
|
||||
volumes:
|
||||
- ./config:/config
|
||||
|
||||
ports:
|
||||
- "8443:8443"
|
||||
- "8080:8080"
|
||||
- "3478:3478/udp"
|
||||
- "10001:10001/udp"
|
||||
- "1900:1900/udp"
|
||||
- "8843:8843"
|
||||
- "8880:8880"
|
||||
- "6789:6789"
|
||||
- "5514:5514/udp"
|
||||
|
||||
networks:
|
||||
- unifi-internal
|
||||
|
||||
networks:
|
||||
unifi-internal:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user