example-in-django-waiting-r.../compose.yaml
Andros Fenollosa 9715adb115 First commit
2024-11-04 12:08:20 +01:00

34 lines
561 B
YAML

services:
redis:
image: redis:alpine
restart: "no"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 60s
retries: 5
expose:
- 6379
django:
build:
context: .
restart: "no"
volumes:
- .:/usr/src/app/
ports:
- 8000:8000
- redis
huey:
build: .
restart: "no"
entrypoint: huey_consumer.py app.huey -w 4 -k process -f
volumes:
- .:/usr/src/app
environment:
- STORE_URI=redis://redis:6379/0
depends_on:
- redis