Really-amin commited on
Commit
a7c6b5b
·
verified ·
1 Parent(s): cb21d07

Update docker-compose.yml

Browse files
Files changed (1) hide show
  1. 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/health || exit 1"]
38
- interval: 30s
39
- timeout: 10s
40
- retries: 5
41
- start_period: 60s
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