# docker-compose.yml - Mama Bot + WAHA (lokale Entwicklung / VPS) # Für Hugging Face Spaces wird nur das Dockerfile verwendet. # Diese Datei ist für lokale Tests oder VPS-Deployment. version: "3.8" services: # WhatsApp HTTP API (WAHA) waha: image: devlikeapro/waha:latest container_name: mama-bot-waha restart: unless-stopped ports: - "3000:3000" environment: - WHATSAPP_HOOK_URL=http://mama-bot:7860/webhook - WHATSAPP_HOOK_EVENTS=messages - WHATSAPP_DEFAULT_ENGINE=WEBJS volumes: - waha-sessions:/app/sessions healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"] interval: 30s timeout: 10s retries: 3 # Mama Bot (FastAPI + Scheduler) mama-bot: build: context: . dockerfile: Dockerfile container_name: mama-bot-app restart: unless-stopped ports: - "7860:7860" environment: # Hugging Face Inference API # Auf HF Spaces automatisch gesetzt, lokal als Secret - HF_TOKEN=${HF_TOKEN:-} - HF_MODEL=mistralai/Mistral-7B-Instruct-v0.3 # WAHA Verbindung - WAHA_API_URL=http://waha:3000 - WAHA_API_KEY=${WAHA_API_KEY:-} - WAHA_SESSION=default # Benutzer - USER_NAME=${USER_NAME:-Sabine} - USER_PHONE=${USER_PHONE:-} # Scheduler - MORNING_HOUR=8 - MORNING_MINUTE=0 - CHECKIN_DAYS=3 volumes: - bot-data:/app/memory depends_on: waha: condition: service_healthy healthcheck: test: ["CMD", "curl", "-f", "http://localhost:7860/health"] interval: 60s timeout: 10s retries: 3 volumes: waha-sessions: bot-data: