ops/komodo/docker-compose.yml aktualisiert

This commit is contained in:
2026-03-31 12:26:39 +00:00
parent c922067586
commit 82c6d73f5a
+22 -13
View File
@@ -1,9 +1,8 @@
services: services:
# ──────────────────────────────────────────────────────────────────
# ────────────────────────────────────────────────────────────────── # MongoDB Datenbank fuer Komodo Core
# MongoDB — Datenbank fuer Komodo Core # Netz: komodo_net (internal: true) niemals frontend_net
# Netz: komodo_net (internal: true) — niemals frontend_net # ──────────────────────────────────────────────────────────────────
# ──────────────────────────────────────────────────────────────────
komodo-mongo: komodo-mongo:
image: mongo:7 image: mongo:7
container_name: komodo-mongo container_name: komodo-mongo
@@ -17,20 +16,27 @@ services:
environment: environment:
- MONGO_INITDB_ROOT_USERNAME=komodo - MONGO_INITDB_ROOT_USERNAME=komodo
- MONGO_INITDB_ROOT_PASSWORD_FILE=/run/secrets/mongo_password - MONGO_INITDB_ROOT_PASSWORD_FILE=/run/secrets/mongo_password
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
# ────────────────────────────────────────────────────────────────── # ──────────────────────────────────────────────────────────────────
# Komodo Core — Management-UI (Portainer-Ersatz) # Komodo Core Management-UI (Portainer-Ersatz)
# Netz: frontend_net (Traefik) + komodo_net (MongoDB/Periphery) # Netz: frontend_net (Traefik) + komodo_net (MongoDB/Periphery)
# Admin-Dienst: dashboard-auth@file + secure-headers@file Pflicht # Admin-Dienst: dashboard-auth@file + secure-headers@file Pflicht
# ────────────────────────────────────────────────────────────────── # ──────────────────────────────────────────────────────────────────
komodo-core: komodo-core:
image: ghcr.io/mbecker20/komodo:latest image: ghcr.io/mbecker20/komodo:latest
container_name: komodo-core container_name: komodo-core
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- komodo-mongo komodo-mongo:
condition: service_healthy
volumes: volumes:
- /mnt/user/appdata/komodo/core:/repo-cache - /mnt/user/appdata/komodo/core:/repo-cache
networks: networks:
@@ -48,6 +54,8 @@ services:
- KOMODO_MONGO_USERNAME=komodo - KOMODO_MONGO_USERNAME=komodo
- KOMODO_MONGO_PASSWORD=${KOMODO_MONGO_PASSWORD} - KOMODO_MONGO_PASSWORD=${KOMODO_MONGO_PASSWORD}
- KOMODO_LOG_LEVEL=info - KOMODO_LOG_LEVEL=info
- KOMODO_LOCAL_AUTH=true
- KOMODO_JWT_SECRET=${KOMODO_JWT_SECRET}
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.docker.network=frontend_net - traefik.docker.network=frontend_net
@@ -60,11 +68,11 @@ services:
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
# ────────────────────────────────────────────────────────────────── # ──────────────────────────────────────────────────────────────────
# Komodo Periphery — Docker-Agent auf Kallilabcore # Komodo Periphery Docker-Agent auf Kallilabcore
# Netz: komodo_net (internal) — kein Traefik noetig # Netz: komodo_net (internal) kein Traefik noetig
# Ausnahme: Docker-Socket ohne :ro (Periphery startet/stoppt Container) # Ausnahme: Docker-Socket ohne :ro (Periphery startet/stoppt Container)
# ────────────────────────────────────────────────────────────────── # ──────────────────────────────────────────────────────────────────
komodo-periphery: komodo-periphery:
image: ghcr.io/mbecker20/periphery:latest image: ghcr.io/mbecker20/periphery:latest
container_name: komodo-periphery container_name: komodo-periphery
@@ -75,6 +83,7 @@ services:
networks: networks:
- komodo_net - komodo_net
environment: environment:
- PERIPHERY_ROOT_DIRECTORY=/mnt/user/services
- PERIPHERY_PASSKEY=${KOMODO_PERIPHERY_PASSKEY} - PERIPHERY_PASSKEY=${KOMODO_PERIPHERY_PASSKEY}
- TZ=Europe/Berlin - TZ=Europe/Berlin
extra_hosts: extra_hosts: