diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 1ccb7f2..e91f1f6 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -40,5 +40,5 @@ chmod -R 775 storage bootstrap/cache mkdir -p /var/www/logs supervisord -c /etc/supervisor/conf.d/supervisord.conf & php-fpm -D -envsubst "${NGINX_HOST} ${NGINX_PORT}" < /etc/nginx/templates/default.conf.template > /etc/nginx/conf.d/default.conf +envsubst '${NGINX_HOST} ${NGINX_PORT}' < /etc/nginx/templates/default.conf.template > /etc/nginx/conf.d/default.conf exec nginx -g "daemon off;" diff --git a/docker/supervisord.conf b/docker/supervisord.conf index 2cffd3d..d98cda5 100644 --- a/docker/supervisord.conf +++ b/docker/supervisord.conf @@ -1,4 +1,5 @@ [supervisord] +user=root nodaemon=true logfile=/var/www/logs/supervisord.log ; 設定 log 儲存位置 pidfile=/var/www/logs/supervisord.pid ; 設定 pid 儲存位置