build(docker): add docker and docker-compose files

This commit is contained in:
2024-08-03 19:20:36 +02:00
parent 9889c206f0
commit 4361655127
14 changed files with 409 additions and 45 deletions

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

@@ -0,0 +1,22 @@
server {
index index.php index.html;
server_name symfony_example_app;
error_log stderr debug;
access_log stderr;
listen 80;
root /var/www/html/public;
location / {
try_files $uri /index.php$is_args$args;
}
location /build {
try_files $uri /$uri;
}
location ~ ^/.+\.php(/|$) {
fastcgi_pass php-fpm:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}