vorbereiten des docker deployments

This commit is contained in:
2025-12-05 19:23:19 +01:00
parent f5da8ed877
commit 01ff8f379b
5 changed files with 310 additions and 0 deletions

30
docker/nginx/default.conf Normal file
View File

@@ -0,0 +1,30 @@
server {
listen 80;
server_name _;
root /var/www/html/public;
index index.php index.html;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass app:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ~* \.(?:css|js|jpg|jpeg|gif|png|svg|ico|webp|ttf|otf|woff|woff2)$ {
expires 7d;
access_log off;
try_files $uri $uri/ /index.php?$query_string;
}
client_max_body_size 20m;
}