Skip to content

Commit b7d098f

Browse files
committed
fix: use native healthchecks for horizon and scheduler
1 parent f944588 commit b7d098f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docker-compose.prod.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,8 @@ services:
9191
redis:
9292
condition: service_healthy
9393
healthcheck:
94-
test: ["CMD", "php", "/var/www/html/artisan", "horizon:status"]
95-
interval: 30s
96-
timeout: 10s
97-
retries: 3
98-
start_period: 30s
94+
test: ["CMD", "healthcheck-horizon"]
95+
start_period: 10s
9996

10097
scheduler:
10198
build:
@@ -105,6 +102,7 @@ services:
105102
image: ghcr.io/relaticle/relaticle:latest
106103
restart: unless-stopped
107104
command: ["php", "/var/www/html/artisan", "schedule:work"]
105+
stop_signal: SIGTERM
108106
environment:
109107
APP_NAME: ${APP_NAME:-Relaticle}
110108
APP_ENV: ${APP_ENV:-production}
@@ -129,6 +127,9 @@ services:
129127
depends_on:
130128
app:
131129
condition: service_healthy
130+
healthcheck:
131+
test: ["CMD", "healthcheck-schedule"]
132+
start_period: 10s
132133

133134
postgres:
134135
image: postgres:16-alpine

0 commit comments

Comments
 (0)