Refactor healthcheck configurations in Docker Compose files
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user