diff --git a/Dockerfile b/Dockerfile index 9cbe72f..d10f916 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,8 +38,5 @@ RUN chown -R www-data:www-data /var/www/html \ # Expose port 80 EXPOSE 80 -# Start script -COPY start.sh /start.sh -RUN chmod +x /start.sh - -CMD ["/start.sh"] +# Start PHP-FPM and Nginx +CMD php-fpm -D && nginx -g 'daemon off;' diff --git a/config/nginx/default.conf b/config/nginx/default.conf index 5340d7a..ef08019 100644 --- a/config/nginx/default.conf +++ b/config/nginx/default.conf @@ -14,7 +14,7 @@ server { location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; - fastcgi_pass 127.0.0.1:9000; + fastcgi_pass localhost:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;