A Nginx configuration repository for PHP + Wordpress web servers
Full portuguese tutorial is here: https://youtu.be/RhYWm2mG_zo
In your local host machine add the following lines to your /etc/hosts
file in order to find the application.
127.0.0.1 www.wordpress.dvp
Build your custom Docker Image running ./docker/build.sh
docker-compose up
: Standalone version
docker-compose up -d
: Daemon version
Open http://www.wordpress.dvp/ and check the headers on your devtools, and you should see this entry Server: nginx
.
The most important scripts are:
docker/nginx/Dockerfile
: that compiles the Docker Image. Here you can find the packages installed on Linux to make this experiment work.docker/nginx/start.sh
: This is the startup script what is executed when the container is activated.docker/apply-config.sh
: Just a shortcut to apply your changes on NGinx config files. You should run this shell script from inside your container.docker/nginx/ssh.sh
: Easy way to into your container instance using SSH. This allows you to execute tests and apply your configuration experiments.pm2/pm2-development.json
: PM2 profile file. This files contains the information needed by PM2 to run your API as a service and keep it running in case of crash.config/nginx
: Where all NGinx config files resides and can be edited as your will.config/php81
: Where all PHP FPM config files resides and can be edited as your will.www/wordpress
: The folder where Wordpress will run from.
For more tutorials and content about applications, Cloud Computing, Security and performance please follow me on my channels/social media:
YouTube:
- Um Inventor Qualquer (Português): https://www.youtube.com/c/UmInventorQualquer
- Wesley Milan (Português): https://www.youtube.com/c/WesleyMilan
Social:
- Linked-In: https://www.linkedin.com/in/wesleymilan/
- Instagram (Português): https://www.instagram.com/uminventorqualquer/