Skip to content

Commit 6e233ec

Browse files
Merge pull request #67 from Relaticle/fix/docker-php-extensions
fix: add missing php extensions to docker image
2 parents 5ffab8c + b7d098f commit 6e233ec

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ LABEL org.opencontainers.image.source="https://github.com/Relaticle/relaticle"
5151
USER root
5252

5353
# Install required PHP extensions
54-
RUN install-php-extensions intl
54+
RUN install-php-extensions intl exif gd imagick bcmath
5555

5656
# Install PostgreSQL client for health checks
5757
RUN apt-get update \

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)