diff --git a/README.md b/README.md index b9c23ab..3269cf2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Nginx and Php-fpm with Laravel on Docker -Running nginx and php-fpm processes in the same Debian container with Laravel (mysql, mariadb, sqlite). How to run multiple services in one docker container. +How to run multiple services in one Docker container. Running Nginx and Php-fpm services in the same Debian container with Laravel using Docker (Mysql, Mariadb, Sqlite). ## Laravel project directory @@ -32,6 +32,10 @@ docker compose ps # Interactive container terminal docker exec -it app_host bash docker exec -it mysql_host bash + +# Services in container +service --status-all +ps -aux ``` ## Run Php-fpm and nginx in same docker container @@ -40,8 +44,8 @@ How to run multiple services in one docker container. ```sh # Allow services autostart -RUN echo "exit 0" > /usr/sbin/policy-rc.d +# RUN echo "exit 0" > /usr/sbin/policy-rc.d -# Run php-fpm (required don't remove) +# Run php-fpm and nginx services (required don't remove) CMD /etc/init.d/php8.2-fpm start && nginx -g "daemon off;" ```
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: