services: web: build: . command: bash -c "cd /code && uv pip install --editable . --no-deps && python manage.py runserver 0.0.0.0:8000" ports: - "8000:8000" restart: unless-stopped environment: - DEBUG=true volumes: - ./seed:/seed:ro - ./:/code depends_on: db: condition: service_healthy redis: condition: service_started celery: build: . command: bash -c "cd /code && uv pip install --editable . --no-deps && celery -A pkmntrade_club.django_project worker -l INFO -B -E" restart: unless-stopped volumes: - ./:/code depends_on: db: condition: service_healthy redis: condition: service_started redis: image: redis:latest restart: always ports: - 6379:6379 healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 db: image: postgres:16 restart: always ports: - 5432:5432 volumes: - postgres_data:/var/lib/postgresql/data/ environment: - "POSTGRES_HOST_AUTH_METHOD=trust" healthcheck: test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"] interval: 10s timeout: 5s retries: 5 volumes: postgres_data: