Laravel 第一版 修正問題 20250602
This commit is contained in:
parent
22a4d0264a
commit
b0e44bee17
@ -43,7 +43,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/KTVCentral/public:/var/www/html/public
|
- ./data/KTVCentral:/var/www/html
|
||||||
- ./docker/nginx/:/etc/nginx/templates
|
- ./docker/nginx/:/etc/nginx/templates
|
||||||
- ./data/logs/nginx/:/var/log/nginx
|
- ./data/logs/nginx/:/var/log/nginx
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -56,3 +56,4 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
app_network:
|
app_network:
|
||||||
name: ${APP_NAME}_network
|
name: ${APP_NAME}_network
|
||||||
|
external: true
|
@ -1,6 +1,6 @@
|
|||||||
server {
|
server {
|
||||||
listen ${NGINX_PORT};
|
listen ${NGINX_PORT};
|
||||||
server_name ${NGINX_HOST}; # ✅ 加上分號
|
server_name ${NGINX_HOST};
|
||||||
|
|
||||||
root /var/www/html/public;
|
root /var/www/html/public;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
@ -16,7 +16,8 @@ server {
|
|||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_pass app:9000;
|
fastcgi_pass app:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
|
||||||
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /\.ht {
|
location ~ /\.ht {
|
||||||
|
2
stop.sh
2
stop.sh
@ -32,7 +32,7 @@ if [ "$WIPE" == "true" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "🛑 Stopping APP services..."
|
echo "🛑 Stopping APP services..."
|
||||||
docker compose -p "$PROJECT_NAME" -f docker-compose.app.yml down $EXTRA_FLAGS
|
docker compose -p "$PROJECT_NAME" -f docker-compose.yml down $EXTRA_FLAGS
|
||||||
|
|
||||||
if [ "$WIPE" == "true" ]; then
|
if [ "$WIPE" == "true" ]; then
|
||||||
echo "🧹 所有資料(volumes, image)已清除!"
|
echo "🧹 所有資料(volumes, image)已清除!"
|
||||||
|
Reference in New Issue
Block a user