feat: add local docker development stack

This commit is contained in:
hajimi
2026-08-01 14:56:01 +08:00
parent deb6ce0e97
commit 8f7e831270
4 changed files with 116 additions and 2 deletions
@@ -0,0 +1,29 @@
server {
listen 80;
server_name _;
root /likeadmin_php/server/public;
index index.html index.htm index.php;
client_max_body_size 20M;
access_log /logs/sport-era-dev_access.log;
error_log /logs/sport-era-dev_error.log;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?s=$1 last;
break;
}
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass server:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /likeadmin_php/server/public$fastcgi_script_name;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
}