diff --git a/.docker/entrypoint.prod.sh b/.docker/entrypoint.prod.sh index 2b320e6..7a74393 100644 --- a/.docker/entrypoint.prod.sh +++ b/.docker/entrypoint.prod.sh @@ -1,6 +1,10 @@ #!/bin/bash set -e +# Source environment variables +echo "Sourcing environment variables..." +. /etc/environment + # Run database migrations echo "Running database migrations..." php bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration diff --git a/.docker/supervisord.conf b/.docker/supervisord.conf index 8a46b42..4e829e8 100644 --- a/.docker/supervisord.conf +++ b/.docker/supervisord.conf @@ -35,3 +35,4 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 +environment=HOME="/root",USER="root"