c-stone-invoice-check/docker-compose.yml
Markus Kruse 48486bf8f5 fix: Host-Port 8005 (8001 = LLM-Tunnel) + Mail-Secrets aus compose in .env
- Backend Host-Port 8001 -> 8005 (8001 reserviert fuer NucBox-LLM-Tunnel)
- IMAP/SMTP-Klartext-Passwoerter entfernt -> ${IMAP_*}/${SMTP_*} aus .env (gitignored)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 23:19:48 +02:00

47 lines
1.2 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}
depends_on:
- db
networks:
- invoice-check-network
volumes:
- ./backend/tests:/app/backend/tests
- /tmp/test-invoices:/tmp/test-invoices
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: