Skip to content

Commit

Permalink
fix: instantiate DB on first launch with Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Aug 15, 2024
1 parent 29f4a75 commit 5ab099d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions frankenphp/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ab099d

Please sign in to comment.