2023-10-31 20:37:15 +01:00
|
|
|
---
|
|
|
|
version: "2.1"
|
|
|
|
services:
|
|
|
|
unifi-network-application:
|
2024-01-26 22:38:41 +01:00
|
|
|
image: "lscr.io/linuxserver/unifi-network-application:8.0.28-ls27@sha256:e673a6100ef8de6ec5e3d8b7bd48f1d1940466f74801048c046a471f5219f551"
|
2023-10-31 20:37:15 +01:00
|
|
|
container_name: unifi-network-application
|
|
|
|
environment:
|
|
|
|
PUID: 1000
|
|
|
|
PGID: 1000
|
|
|
|
TZ: Etc/UTC
|
|
|
|
MONGO_USER: unifiuser
|
2024-01-26 22:37:25 +01:00
|
|
|
MONGO_PASS: "{{ lookup('keepass', 'unifi-mongodb-pass', 'password') }}"
|
2023-10-31 20:37:15 +01:00
|
|
|
MONGO_HOST: unifi-db
|
|
|
|
MONGO_PORT: 27017
|
|
|
|
MONGO_DBNAME: unifidb
|
|
|
|
MEM_LIMIT: 1024 #optional
|
|
|
|
MEM_STARTUP: 1024 #optional
|
|
|
|
volumes:
|
|
|
|
- unifi-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: always
|
|
|
|
labels:
|
2023-11-09 17:33:26 +01:00
|
|
|
com.centurylinklabs.watchtower.enable: true
|
2023-10-31 20:37:15 +01:00
|
|
|
com.centurylinklabs.watchtower.depends-on: unifi-db
|
|
|
|
networks:
|
|
|
|
- mail-relay
|
|
|
|
- unifi-internal
|
|
|
|
|
|
|
|
unifi-db:
|
|
|
|
# Starte Container OHNE init-script
|
|
|
|
# IN Container
|
|
|
|
# 1. mongo
|
|
|
|
# 2. db.getSiblingDB("unifidb").createUser({user: "unifiuser", pwd: "GEHEIM", roles: [{role: "dbOwner", db: "unifidb"}, {role: "dbOwner", db: "unifidb_stat"}]});
|
|
|
|
# https://discourse.linuxserver.io/t/cant-connect-to-mongodb-for-unifi-network-application/8166
|
2024-01-26 23:07:40 +01:00
|
|
|
image: "docker.io/mongo:7.0.5@sha256:192e2724093257a7db12db6cbafd92e3e5d51937f13846d49ea555cea85787ce"
|
2023-10-31 20:37:15 +01:00
|
|
|
container_name: unifi-db
|
|
|
|
volumes:
|
|
|
|
- db-data:/data/db
|
|
|
|
restart: always
|
|
|
|
labels:
|
|
|
|
com.centurylinklabs.watchtower.enable: true
|
|
|
|
networks:
|
|
|
|
- unifi-internal
|
|
|
|
|
|
|
|
######## Volumes ########
|
|
|
|
volumes:
|
|
|
|
db-data:
|
|
|
|
unifi-data:
|
|
|
|
######## Networks ########
|
|
|
|
networks:
|
|
|
|
mail-relay:
|
|
|
|
external: true
|
|
|
|
unifi-internal:
|
|
|
|
driver: bridge
|