From 5ab099d8751a81b5ed61df574b3f8db2ab7a3813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Thu, 15 Aug 2024 18:48:47 +0200 Subject: [PATCH] fix: instantiate DB on first launch with Docker --- compose.prod.yaml | 7 +++++++ frankenphp/docker-entrypoint.sh | 1 + 2 files changed, 8 insertions(+) diff --git a/compose.prod.yaml b/compose.prod.yaml index d49a419..5220ceb 100644 --- a/compose.prod.yaml +++ b/compose.prod.yaml @@ -6,3 +6,10 @@ services: target: frankenphp_prod environment: APP_SECRET: ${APP_SECRET} + + php-worker: + build: + context: . + target: frankenphp_prod + restart: always + command: php /app/bin/console messenger:consume --all --time-limit=3600 -vvv diff --git a/frankenphp/docker-entrypoint.sh b/frankenphp/docker-entrypoint.sh index 189968b..a2931f2 100755 --- a/frankenphp/docker-entrypoint.sh +++ b/frankenphp/docker-entrypoint.sh @@ -54,6 +54,7 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then fi php bin/console lexik:jwt:generate-keypair || true + php bin/console app:update-rdap-servers setfacl -R -m u:www-data:rwX -m u:"$(whoami)":rwX var setfacl -dR -m u:www-data:rwX -m u:"$(whoami)":rwX var