Spaces:
Paused
Paused
Update docker-compose.yml
Browse files- docker-compose.yml +7 -5
docker-compose.yml
CHANGED
|
@@ -33,12 +33,14 @@ services:
|
|
| 33 |
- PYTHONUNBUFFERED=1
|
| 34 |
# Fix Redis connection
|
| 35 |
- REDIS_URL=redis://redis:6379/0
|
|
|
|
|
|
|
| 36 |
healthcheck:
|
| 37 |
-
test: ["CMD-SHELL", "curl -fs http://localhost:8000/
|
| 38 |
-
interval:
|
| 39 |
-
timeout:
|
| 40 |
-
retries:
|
| 41 |
-
start_period:
|
| 42 |
depends_on:
|
| 43 |
redis:
|
| 44 |
condition: service_healthy
|
|
|
|
| 33 |
- PYTHONUNBUFFERED=1
|
| 34 |
# Fix Redis connection
|
| 35 |
- REDIS_URL=redis://redis:6379/0
|
| 36 |
+
- REDIS_HOST=redis
|
| 37 |
+
- REDIS_PORT=6379
|
| 38 |
healthcheck:
|
| 39 |
+
test: ["CMD-SHELL", "curl -fs http://localhost:8000/ping || exit 1"]
|
| 40 |
+
interval: 45s
|
| 41 |
+
timeout: 30s
|
| 42 |
+
retries: 10
|
| 43 |
+
start_period: 180s
|
| 44 |
depends_on:
|
| 45 |
redis:
|
| 46 |
condition: service_healthy
|