Files
melesICUmover/docker-compose.yaml
T
domandClaude Opus 5 2fc8dea10c Add Gundi v2 push receiver for ICU and normalized data model
ICU now pushes camera events via a Gundi-v2-compatible API instead of
dropping file triplets into S3. The new gundi-receiver service accepts
them directly, so images are in the system within seconds instead of
waiting out the 90s age gate + poll interval. OCR of the burnt-in camera
timestamp stays mandatory (ICU only sends server times; OCR detects
drifting camera clocks) but now runs asynchronously after ingest.

The push path writes a normalized model that separates what the legacy
metadata table conflates: camera_status (status time series), image
(image properties) and detection (classifications), plus the
image_with_status view as the portal's migration target. A repeatable,
batched migration splits existing metadata/category rows into it.

The legacy poller is unchanged and keeps writing metadata/category until
the portal is switched over.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 13:54:21 +00:00

43 lines
1.4 KiB
YAML

services:
melesicumover:
build: .
container_name: melesicumover
restart: unless-stopped
# Secrets werden aus der lokalen .env in die Container-Umgebung injiziert.
# Die .env liegt NICHT im Image und NICHT im Git (siehe .gitignore).
env_file:
- .env
environment:
CONFIG_YAML: /app/config.yaml
DEBUG: "0"
# Kein Bind-Mount des Quellcodes mehr (der Code steckt im Image) und
# standardmaessig KEIN offener Debug-Port.
#
# Debugging nur bei Bedarf, lokal:
# 1) DEBUG oben auf "1" setzen
# 2) folgende Zeilen einkommentieren - bindet debugpy NUR an localhost:
# ports:
# - "127.0.0.1:5678:5678"
# Gundi-v2-Push-Empfaenger. Gleiches Image, eigener Prozess: startet und
# stirbt unabhaengig vom Poller. Nur an localhost gebunden - TLS und
# oeffentliche Erreichbarkeit uebernimmt nginx (icu.meles.eu).
gundi-receiver:
build: .
container_name: melesicumover-gundi
restart: unless-stopped
command: ["python", "/app/gundi_receiver.py"]
env_file:
- .env
environment:
CONFIG_YAML: /app/config.yaml
DEBUG: "0"
ports:
- "127.0.0.1:8090:8090"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8090/healthz', timeout=3)"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s