add redis url to env var

This commit is contained in:
Hongbo Wu 2024-01-04 18:17:16 +08:00
parent 8137a74f51
commit 0cf7054ce6

View file

@ -37,6 +37,10 @@ services:
container_name: "omnivore-redis"
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 15s
timeout: 90s
expose:
- 6379
@ -66,6 +70,7 @@ services:
- CLIENT_URL=http://localhost:3000
- GATEWAY_URL=http://localhost:8080/api
- CONTENT_FETCH_URL=http://content-fetch:8080/?token=some_token
- REDIS_URL=redis://redis:6379
depends_on:
migrate:
condition: service_completed_successfully