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