Files
serienbrief_django/serienbrief/docker-compose.override.yml
T
2026-05-21 10:36:16 +02:00

63 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# =============================================================================
# Dev-Overrides wird von "docker compose" automatisch mit gemerged.
# Für reine Produktion: `docker compose -f docker-compose.yml up -d`
# =============================================================================
services:
web:
build:
target: dev
command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
environment:
DJANGO_SETTINGS_MODULE: config.settings.dev
ROLE: web
ports:
# Direkter Zugriff von Host für VS Code & Browser
- "127.0.0.1:8000:8000"
# debugpy für VS Code Remote-Debug
- "127.0.0.1:5678:5678"
volumes:
# Live-Reload: lokaler Code wird in den Container gemountet
- ./app:/app:cached
- static_files:/app/staticfiles
- media_files:/app/media
read_only: false
healthcheck:
disable: true
worker:
build:
target: dev
command: ["celery", "-A", "config", "worker", "--loglevel=debug", "--concurrency=1"]
environment:
DJANGO_SETTINGS_MODULE: config.settings.dev
ROLE: worker
volumes:
- ./app:/app:cached
- media_files:/app/media
read_only: false
healthcheck:
disable: true
beat:
build:
target: dev
environment:
DJANGO_SETTINGS_MODULE: config.settings.dev
volumes:
- ./app:/app:cached
read_only: false
db:
ports:
# Lokaler DB-Zugriff via DBeaver/psql nur Loopback
- "127.0.0.1:5432:5432"
redis:
ports:
- "127.0.0.1:6379:6379"
# Backup im Dev nicht nötig
backup:
profiles: ["never"]