diff --git a/Dockerfile b/Dockerfile index 7845681..9188c10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM dunglas/frankenphp +FROM dunglas/frankenphp:php8.4-alpine ENV SERVER_NAME=":80" ENV CADDY_GLOBAL_OPTIONS="auto_https off" @@ -11,6 +11,8 @@ RUN install-php-extensions \ zip \ opcache +RUN apk add --no-cache wget + HEALTHCHECK --interval=3s --timeout=3s --retries=10 CMD [ "php", "/app/bin/console", "startup:status" ] COPY docker/app/Caddyfile /etc/frankenphp/Caddyfile diff --git a/compose.yml b/compose.yml index e27252b..711d13a 100755 --- a/compose.yml +++ b/compose.yml @@ -35,7 +35,7 @@ services: volumes: - $PWD:/app tty: true - command: php /app/bin/console messenger:consume async -vv --time-limit=3600 limit=10 + command: php /app/bin/console messenger:consume async -vv --time-limit=3600 --limit=10 scheduler: diff --git a/docker/Dockerfile.worker b/docker/Dockerfile.worker index 7869b10..912132d 100644 --- a/docker/Dockerfile.worker +++ b/docker/Dockerfile.worker @@ -11,6 +11,8 @@ RUN install-php-extensions \ zip \ opcache +RUN apk add --no-cache wget + COPY . /app ENTRYPOINT [ "php", "/app/bin/console", "messenger:consume", "async" ]