Skip to content

Commit 8b729ba

Browse files
committed
Update Docker Compose files to enforce health checks for Redis service dependencies, ensuring service availability before starting dependent services.
Signed-off-by: Venipa <admin@venipa.net>
1 parent 2dff418 commit 8b729ba

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎docker-compose.dokploy.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ services:
1616
# ports:
1717
# - "3000:3000"
1818
depends_on:
19-
- redis
19+
redis:
20+
condition: service_healthy
2021
environment:
2122
PORT: "3000"
2223
ORIGIN_HOST: ${ORIGIN_HOST:-"*"}

‎docker-compose.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ services:
1616
ports:
1717
- "3000:3000"
1818
depends_on:
19-
- redis
19+
redis:
20+
condition: service_healthy
2021
environment:
2122
PORT: "3000"
2223
ORIGIN_HOST: ${ORIGIN_HOST:-"*"}

0 commit comments

Comments
 (0)