Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9969c9a

Browse files
committed
Update Nginx environment variable handling in docker-compose.yml
This commit improves how environment variables are managed for the Nginxservice:- Add APP_DIR variable to the web service environment variables- Derive APP_PUBLIC_DIR dynamically from APP_DIR- Maintain backward compatibility with existing template files- Ensure consistent directory referencing throughout the stackThis change simplifies configuration by reducing the number of variablesthat need to be manually synchronized, making it easier for users toswitch between different PHP frameworks or customize their applicationdirectory structure.
1 parentc0356a9 commit9969c9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎docker-compose.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ services:
4444
environment:
4545
-NGINX_HOST=${NGINX_HOST}
4646
-APP_WORKSPACE=${APP_WORKSPACE:-default}
47-
-APP_PUBLIC_DIR=${APP_PUBLIC_DIR:-public}
47+
-APP_DIR=${APP_DIR:-app}
48+
-APP_PUBLIC_DIR=${APP_DIR:-app}/public
4849
-NGINX_WORKSPACE_DIR=${NGINX_WORKSPACE_DIR:-workspace}
4950
command:/bin/sh -c "envsubst '$$NGINX_HOST $$APP_WORKSPACE $$APP_PUBLIC_DIR $$NGINX_WORKSPACE_DIR' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
5051
restart:always

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp