example-in-django-waiting-r.../compose.yaml

33 lines
500 B
YAML
Raw Normal View History

2024-11-04 12:08:20 +01:00
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
2024-11-05 11:46:00 +01:00
depends_on:
2024-11-04 12:08:20 +01:00
- redis
huey:
build: .
restart: "no"
2024-11-05 11:46:00 +01:00
entrypoint: ./manage.py run_huey -f
2024-11-04 12:08:20 +01:00
volumes:
- .:/usr/src/app
depends_on:
- redis