From 51ea8285f11d3e66adfe5ddb5f6f7eef4d26999d Mon Sep 17 00:00:00 2001 From: Dex Burgess Date: Sat, 30 Mar 2024 04:52:22 +0000 Subject: [PATCH] Add network-stack.yaml --- network-stack.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 network-stack.yaml diff --git a/network-stack.yaml b/network-stack.yaml new file mode 100644 index 0000000..5482677 --- /dev/null +++ b/network-stack.yaml @@ -0,0 +1,44 @@ +version: '3.7' +services: + unifi-network-application: + image: lscr.io/linuxserver/unifi-network-application:latest + container_name: unifi-network-application + restart: unless-stopped + environment: + - PUID=1000 + - PGID=1000 + - TZ=Etc/UTC + - MONGO_USER=unifi + - MONGO_PASS=5nHgg3G0cH9d + - 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: + - /dockers/unifi-controller:/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 + + unifi-db: + image: docker.io/mongo:4.4 + container_name: unifi-db + restart: unless-stopped + volumes: + - /dockers/unifi-controller-db:/data/db + - /dockers/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro + +networks: + default: + name: dockers_default + external: true \ No newline at end of file