Files
kennethreitz ce939dc497 Run collectstatic at container startup
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 21:27:13 -04:00

43 lines
1.0 KiB
YAML

services:
web:
build: .
command: sh -c "uv sync --frozen && uv run python manage.py collectstatic --noinput && uv run python manage.py runbolt --dev --host 0.0.0.0 --port 8000"
ports:
- "8000:8000"
volumes:
- .:/app
- /app/.venv
env_file:
- path: .env
required: false
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
redis:
condition: service_healthy
worker:
build: .
command: sh -c "uv sync --frozen && uv run celery -A exiftree worker -l info"
volumes:
- .:/app
- /app/.venv
env_file:
- path: .env
required: false
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
redis:
condition: service_healthy
redis:
image: redis:7-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5