Files
wibosim/docker-compose.yml
T
db9979andClaude Opus 5.5 e93135cc83 Betrieb: CI mit Multi-Arch-Image, Rollback, HTTPS-Profil, API-Doku
- GitHub Actions: Tests, danach Image für amd64/arm64 nach ghcr.io (latest + sha-Tags)
- docker-compose: fertiges Image mit Build-Fallback, Versions-Tag, Caddy-Profil „https“ (tls internal)
- deploy-pi.sh holt das Image (Fallback: lokal bauen) und prüft die Gesundheit; rollback.sh für Version oder Datenbanksicherung
- Dockerfile mit Versionslabel, ohne Testdateien
- docs/API.md: vollständige REST/WebSocket-Schnittstelle; KONZEPT: Architektur, Sicherheit, Roadmap aktualisiert

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUhQVoPUusUzxgxLWkK
2026-12-03 14:00:36 +00:00

47 lines
1.3 KiB
YAML

# Standard: fertiges Image aus der GitHub Container Registry (amd64 + arm64).
# Aktualisieren: docker compose pull && docker compose up -d
# Bestimmte Version: WIBOSIM_TAG=sha-abc1234 docker compose up -d (siehe scripts/rollback.sh)
# Selbst bauen: docker compose up -d --build
# Optional HTTPS im Heimnetz über Caddy: docker compose --profile https up -d
services:
wibosim:
image: ghcr.io/db9979/wibosim:${WIBOSIM_TAG:-latest}
build: .
container_name: wibosim
restart: unless-stopped
ports:
- "8086:8086"
volumes:
- wibosim-data:/data
env_file:
- path: .env
required: false
environment:
TZ: Europe/Berlin
BASE_URL: ${BASE_URL:-http://192.168.178.21:8086}
stop_grace_period: 20s
# Schonend für den Pi
mem_limit: 384m
logging:
driver: json-file
options: { max-size: "5m", max-file: "3" }
caddy:
image: caddy:2-alpine
profiles: ["https"]
container_name: wibosim-caddy
restart: unless-stopped
depends_on: [wibosim]
ports:
- "443:443"
- "80:80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
environment:
WIBOSIM_HOST: ${WIBOSIM_HOST:-wibosim.local}
volumes:
wibosim-data:
caddy-data: