diff --git a/.DS_Store b/.DS_Store
index 173663f..e7c7d81 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml
index e69de29..8f9c8b8 100644
--- a/nextcloud/docker-compose.yml
+++ b/nextcloud/docker-compose.yml
@@ -0,0 +1,77 @@
+services:
+ nextcloud-server:
+ image: nextcloud:apache
+ container_name: ${CONTAINER_NAME:-nextcloud-server}
+ restart: ${RESTART_POLICY}
+ volumes:
+ - type: bind
+ source: ${NEXTCLOUD_DATA_LOCATION:-./nextcloud/data}
+ target: /var/www/html
+ bind:
+ create_host_path: true
+ - /etc/localtime:/etc/localtime:ro
+ environment:
+ - POSTGRES_HOST=nextcloud-db
+ - POSTGRES_DB=${DB_DATABASE_NAME:-nextcloud}
+ - POSTGRES_USER=${DB_USERNAME:-nextcloud}
+ - POSTGRES_PASSWORD=${DB_PASSWORD}
+ - REDIS_HOST=nextcloud-redis
+ networks:
+ - traefik
+ - nextcloud-internal
+ labels:
+ - "traefik.enable=true"
+ - "traefik.http.routers.${ROUTER_NAME}.entrypoints=websecure"
+ - "traefik.http.routers.${ROUTER_NAME}.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
+ - "traefik.http.routers.${ROUTER_NAME}.tls=true"
+ - "traefik.http.routers.${ROUTER_NAME}.tls.certresolver=${CERTIFICATE_RESOLVER}"
+ - "traefik.http.services.${ROUTER_NAME}.loadbalancer.server.port=80"
+ - "traefik.docker.network=${TRAEFIK_NETWORK}"
+ depends_on:
+ - nextcloud-redis
+ - nextcloud-db
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "10m"
+ max-file: "3"
+
+ nextcloud-redis:
+ image: valkey/valkey:8-alpine
+ container_name: ${REDIS_CONTAINER_NAME:-nextcloud-redis}
+ restart: ${RESTART_POLICY}
+ networks:
+ - nextcloud-internal
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "10m"
+ max-file: "3"
+
+ nextcloud-db:
+ image: postgres:16-alpine
+ container_name: ${DB_CONTAINER_NAME:-nextcloud-db}
+ restart: ${RESTART_POLICY}
+ environment:
+ - POSTGRES_USER=${DB_USERNAME:-nextcloud}
+ - POSTGRES_PASSWORD=${DB_PASSWORD}
+ - POSTGRES_DB=${DB_DATABASE_NAME:-nextcloud}
+ volumes:
+ - type: bind
+ source: ${DB_DATA_PATH:-./nextcloud/db}
+ target: /var/lib/postgresql/data
+ bind:
+ create_host_path: true
+ networks:
+ - nextcloud-internal
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "10m"
+ max-file: "3"
+
+networks:
+ traefik:
+ external: true
+ nextcloud-internal:
+ internal: true
\ No newline at end of file
diff --git a/readme.md b/readme.md
index d4c9f71..2ddf371 100644
--- a/readme.md
+++ b/readme.md
@@ -189,4 +189,62 @@ In der aktuellen Phase (Single-Drive) sieht das Zusammenspiel wie folgt aus:
# Visualisierung
├── für einen Ordner oder eine Datei, wenn danach noch weitere Elemente auf derselben Ebene folgen.
└── für das letzte Element auf einer Ebene (das „Eckstück“).
-│ für Linien, die an Unterordnern vorbeiführen (wichtig für die richtige Einrückung).
\ No newline at end of file
+│ für Linien, die an Unterordnern vorbeiführen (wichtig für die richtige Einrückung).
+
+
+
+
+```mermaid
+sequenceDiagram
+ autonumber
+ actor USER
+ participant DESEC
+ participant ROUTER_WEF AS WEF Router
+ Note over ROUTER_WEF: Ports 443 and 80 forwarded,
Points to Offsite IP
+ participant OFFSITE AS Offsite Server
+ participant ROUTER_LPZ AS LPZ Router
+ Note over ROUTER_LPZ: Ports 443 and 80 forwarded,
DDNS points to home IP
+ participant NAS
+ participant PROD
+ participant TEST
+
+ activate ROUTER_LPZ
+ activate ROUTER_WEF
+ activate NAS
+ activate PROD
+ activate TEST
+ activate OFFSITE
+ USER->>+DESEC: Resolve domain (DNS query)
+ alt SERVER in LPZ up
+ DESEC-->>-USER: Return LPZ Home IP
+ USER->>ROUTER_LPZ: Send request (HTTPS/HTTP)
+ ROUTER_LPZ-->>NAS: Forward request to NAS Traefik
+ NAS-->>NAS: Traefik inspects Host header
+ alt Production Domain
+ NAS->>PROD: Forward to PROD container
+ PROD-->>NAS: Return response
+ else Test Domain or recovery / maintenance at production
+ NAS->>TEST: Forward to TEST container
+ TEST-->>NAS: Return response
+ end
+ NAS-->>ROUTER_LPZ: Return response
+ ROUTER_LPZ-->>USER: Send response
+ else SERVER in LPZ down (deSEC Failover)
+ DESEC-->>USER: Return WEF/Offsite IP
+ USER->>ROUTER_WEF: Send request (HTTPS/HTTP)
+ ROUTER_WEF-->>OFFSITE: Forward request to Offsite Traefik
+ OFFSITE-->>OFFSITE: Traefik inspects Host header
+ OFFSITE->>OFFSITE: Forward to PROD container
+ OFFSITE-->>OFFSITE: Return response
+ OFFSITE-->>ROUTER_WEF: Return response
+ ROUTER_WEF-->>USER: Send response
+ end
+
+ deactivate ROUTER_LPZ
+ deactivate ROUTER_WEF
+ deactivate NAS
+ deactivate PROD
+ deactivate TEST
+ deactivate OFFSITE
+
+```