Michael Grote
28f22968da
Reviewed-on: #127
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
ci: testing deployment (#128)
Reviewed-on: #128
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
ci: test
ci: enable deployment
ci: set ssh-key for deployment
ci: debug
ci: deactivate ansible-lint temporarily
ci: deactivate ansible-galaxy temporarily
ci: debug ssh-key shell redirect
ci: base64
ci: debug
ci: debug
ci: fix output
Revert "ci: deactivate ansible-lint temporarily"
This reverts commit 6729342f26
.
ci: fix vault-pass secret
pbs_integration: enable no_log
ci: debug ansible-vault
ci: debug
ci: ansible-vault + move to viczem.keepass (#130)
Reviewed-on: #130
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
ff
plugin umbennennugn
ff
72 lines
1.9 KiB
Django/Jinja
72 lines
1.9 KiB
Django/Jinja
---
|
|
version: "2.1"
|
|
services:
|
|
unifi-network-application:
|
|
image: "lscr.io/linuxserver/unifi-network-application:8.0.28-ls27"
|
|
container_name: unifi-network-application
|
|
environment:
|
|
PUID: 1000
|
|
PGID: 1000
|
|
TZ: Etc/UTC
|
|
MONGO_USER: unifiuser
|
|
MONGO_PASS: "{{ lookup('viczem.keepass.keepass', 'unifi-mongodb-pass', 'password') }}"
|
|
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
|
|
networks:
|
|
- mail-relay
|
|
- unifi-internal
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "--insecure", "https://localhost:8443"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
depends_on:
|
|
- unifi-db
|
|
|
|
unifi-db:
|
|
# Starte Container OHNE init-script
|
|
# In Container
|
|
# 1. mongosh
|
|
# 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
|
|
image: "docker.io/mongo:7.0.12"
|
|
container_name: unifi-db
|
|
volumes:
|
|
- db-data:/data/db
|
|
restart: always
|
|
environment:
|
|
MARIADB_AUTO_UPGRADE: "1"
|
|
networks:
|
|
- unifi-internal
|
|
healthcheck:
|
|
test: ["CMD", "mongosh", "--eval", "db.stats().ok"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
######## Volumes ########
|
|
volumes:
|
|
db-data:
|
|
unifi-data:
|
|
######## Networks ########
|
|
networks:
|
|
mail-relay:
|
|
external: true
|
|
unifi-internal:
|
|
driver: bridge
|