Laravel 第一版 修正問題 20250602
This commit is contained in:
parent
22a4d0264a
commit
b0e44bee17
@ -43,7 +43,7 @@ services:
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./data/KTVCentral/public:/var/www/html/public
|
||||
- ./data/KTVCentral:/var/www/html
|
||||
- ./docker/nginx/:/etc/nginx/templates
|
||||
- ./data/logs/nginx/:/var/log/nginx
|
||||
depends_on:
|
||||
@ -55,4 +55,5 @@ services:
|
||||
- app_network
|
||||
networks:
|
||||
app_network:
|
||||
name: ${APP_NAME}_network
|
||||
name: ${APP_NAME}_network
|
||||
external: true
|
@ -1,6 +1,6 @@
|
||||
server {
|
||||
listen ${NGINX_PORT};
|
||||
server_name ${NGINX_HOST}; # ✅ 加上分號
|
||||
server_name ${NGINX_HOST};
|
||||
|
||||
root /var/www/html/public;
|
||||
index index.php index.html;
|
||||
@ -16,7 +16,8 @@ server {
|
||||
include fastcgi_params;
|
||||
fastcgi_pass app:9000;
|
||||
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 {
|
||||
|
2
stop.sh
2
stop.sh
@ -32,7 +32,7 @@ if [ "$WIPE" == "true" ]; then
|
||||
fi
|
||||
|
||||
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
|
||||
echo "🧹 所有資料(volumes, image)已清除!"
|
||||
|
Reference in New Issue
Block a user