rcnn/docker-compose.yml
Marius Unsel d93412cd0d Initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 01:12:40 +02:00

86 lines
1.9 KiB
YAML

services:
db:
image: postgis/postgis:16-3.4
environment:
POSTGRES_DB: ${POSTGRES_DB:-splatmap}
POSTGRES_USER: ${POSTGRES_USER:-splatmap}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-splatmap}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-splatmap}"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
web:
build:
context: ./backend
args:
REQUIREMENTS: development
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend:/app
ports:
- "8000:8000"
env_file:
- .env
environment:
DJANGO_SETTINGS_MODULE: config.settings.development
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
celery:
build:
context: ./backend
args:
REQUIREMENTS: development
command: celery -A config worker -l info -Q default,splat_jobs
volumes:
- ./backend:/app
env_file:
- .env
environment:
DJANGO_SETTINGS_MODULE: config.settings.development
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
celery-beat:
build:
context: ./backend
args:
REQUIREMENTS: development
command: celery -A config beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
volumes:
- ./backend:/app
env_file:
- .env
environment:
DJANGO_SETTINGS_MODULE: config.settings.development
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
volumes:
postgres_data: