diff --git a/docker-compose.coolify.yml b/docker-compose.coolify.yml index add4f7b..2ea569f 100644 --- a/docker-compose.coolify.yml +++ b/docker-compose.coolify.yml @@ -83,7 +83,7 @@ services: postgres-backend: condition: service_healthy healthcheck: - test: ['CMD', 'node', '-e', "require('http').get('http://localhost:3000/health', (r) => {if(r.statusCode !== 200) process.exit(1)})"] + test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:80/'] interval: 30s timeout: 10s retries: 3 @@ -126,7 +126,7 @@ services: volumes: - placebo-cms-uploads:/app/public/uploads healthcheck: - test: ['CMD', 'node', '-e', "require('http').get('http://localhost:1337/_health', (r) => {if(r.statusCode !== 200) process.exit(1)})"] + test: ['CMD', 'node', '-e', "require('http').get('http://127.0.0.1:1337/_health', (r) => {if(r.statusCode === 200 || r.statusCode === 204) process.exit(0); process.exit(1)})"] interval: 30s timeout: 10s retries: 3