59 lines
1.4 KiB
YAML
59 lines
1.4 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
|
|
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
|