mirror of
https://github.com/kennethreitz/photos.kennethreitz.org.git
synced 2026-06-20 14:50:56 +00:00
ce939dc497
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
43 lines
1.0 KiB
YAML
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
|