Refactor healthcheck configurations in Docker Compose files

This commit is contained in:
Andras Bacsai
2024-04-16 14:08:11 +02:00
parent 498626748d
commit 1aec16a240
17 changed files with 145 additions and 34 deletions

View File

@@ -24,7 +24,13 @@ services:
volumes:
- n8n-data:/home/node/.n8n
depends_on:
- postgresql
postgresql:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:5678/"]
interval: 5s
timeout: 20s
retries: 10
postgresql:
image: postgres:16-alpine
volumes:
@@ -38,4 +44,3 @@ services:
interval: 5s
timeout: 20s
retries: 10