Skip to content
Snippets Groups Projects
Commit 56a2cbfd authored by Cyril L'Orphelin's avatar Cyril L'Orphelin
Browse files

MAJ php-fpm command

parent d1033f49
No related branches found
No related tags found
No related merge requests found
......@@ -76,5 +76,7 @@ RUN mv symfony.conf /etc/nginx/sites-enabled/default
STOPSIGNAL SIGTERM
CMD ["/usr/local/sbin/php-fpm"]
CMD ["nginx", "-g", "daemon off;"]
......@@ -11,7 +11,7 @@ server {
# In production, don't include this and don't deploy index_dev.php or config.php
location ~ ^/(index_dev|config)\.php(/|$) {
#fastcgi_pass unix:/var/run/php7.4-fpm.sock;
fastcgi_pass localhost:9000;
fastcgi_pass php:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
# When you are using symlinks to link the document root to the
......@@ -30,7 +30,7 @@ server {
# PROD
location ~ ^/index\.php(/|$) {
#fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_pass localhost:9000;
fastcgi_pass php:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
# When you are using symlinks to link the document root to the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment