c-stone-invoice-check/docker-compose.yml
Markus Kruse 97b5a7ec45 fix: PDF extraction und Speicherung korrigiert
- db-Parameter in extract_and_process_attachments hinzugefügt
- INVOICE_STORAGE_PATH in docker-compose.yml gesetzt
- Ablagepfad: /tmp/invoice-storage im Container
- Alte DB-Einträge aktualisiert

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-25 00:20:39 +02:00

50 lines
1.3 KiB
YAML

services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: invoice-check-backend
ports:
- "127.0.0.1:8005:8001" # Host 8005 (Projekt-Port) — 8001 belegt LLM-Tunnel
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/invoice_check
- SECRET_KEY=${SECRET_KEY}
- AWS_DEFAULT_REGION=eu-central-1
- IMAP_HOST=imap.strato.de
- IMAP_PORT=993
- IMAP_USER=${IMAP_USER}
- IMAP_PASSWORD=${IMAP_PASSWORD}
- SMTP_HOST=smtp.strato.de
- SMTP_PORT=587
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- INVOICE_STORAGE_PATH=/tmp/invoice-storage
depends_on:
- db
networks:
- invoice-check-network
volumes:
- ./backend/tests:/app/backend/tests
- /tmp/test-invoices:/tmp/test-invoices
- invoice-storage:/tmp/invoice-storage
db:
image: postgres:16-alpine
container_name: invoice-check-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=invoice_check
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- invoice-check-network
# Kein ports-Mapping - DB nur Docker-intern
networks:
invoice-check-network:
driver: bridge
volumes:
postgres-data:
invoice-storage: