66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
services:
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.backend
|
|
container_name: invoice-check-backend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:8005:8001"
|
|
environment:
|
|
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@db:5432/invoice_check
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
- AWS_DEFAULT_REGION=eu-central-1
|
|
- IMAP_HOST=${IMAP_HOST:-imap.strato.de}
|
|
- IMAP_PORT=${IMAP_PORT:-993}
|
|
- IMAP_USER=${IMAP_USER}
|
|
- IMAP_PASSWORD=${IMAP_PASSWORD}
|
|
- INVOICE_STORAGE_PATH=/data/rechnungen
|
|
# Invoice Picker: ohne ACCOUNTABLE_INBOX kein Versand, ohne GRAB_CUTOFF alles nur mit Freigabe
|
|
- ACCOUNTABLE_INBOX=${ACCOUNTABLE_INBOX:-}
|
|
- GRAB_CUTOFF=${GRAB_CUTOFF:-}
|
|
- SMTP_HOST=${SMTP_HOST:-smtp.strato.de}
|
|
- SMTP_PORT=${SMTP_PORT:-465}
|
|
- INVOICING_AWS_ACCESS_KEY_ID=${INVOICING_AWS_ACCESS_KEY_ID:-}
|
|
- INVOICING_AWS_SECRET_ACCESS_KEY=${INVOICING_AWS_SECRET_ACCESS_KEY:-}
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- invoice-check-network
|
|
volumes:
|
|
- ./rechnungen:/data/rechnungen
|
|
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.frontend
|
|
container_name: invoice-check-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:5178:80"
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- invoice-check-network
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: invoice-check-db
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
- 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:
|
|
name: invoice-check-postgres-data
|