# RAPPORT-HOST — lokaler Stack (identisch deploybar auf Hetzner via .env). # Nur die HOST-eigene Postgres läuft hier als Container; das Backend/Frontend # fährst du im Dev mit `npm run server` + `npm run dev`. Für Prod ist unten ein # (auskommentiertes) app-Image vorbereitet. services: host-db: image: postgres:16-alpine container_name: rapport-host-db restart: unless-stopped environment: POSTGRES_USER: rapport_host POSTGRES_PASSWORD: rapport_host POSTGRES_DB: rapport_host ports: - "55432:5432" # 55432 lokal, um Konflikte mit anderen PG zu vermeiden volumes: - host-db-data:/var/lib/postgresql/data healthcheck: test: ["CMD", "pg_isready", "-U", "rapport_host"] interval: 5s timeout: 5s retries: 10 # ── Prod (später): Backend+Frontend als ein Image ───────────────────────── # app: # build: . # environment: # DATABASE_URL: postgres://rapport_host:rapport_host@host-db:5432/rapport_host # # restliche Env aus .env / Hetzner-Secrets # depends_on: # host-db: # condition: service_healthy # ports: # - "8787:8787" volumes: host-db-data: