

Now, you should be able to browse and see the WordPress site properly Fixing mixed assets content error easily Fixing protocol errors Run the create_wordpress.sh script and wait until it is ready.Īdd in your /etc/hosts an alias that points to `127.0.1.1`. Run the create_wordpress_mysql.sh script and wait until it is ready and the database is created. Be aware of the proxy_set_header defined there:įirst we need to setup execution grants to all the *.sh files with:īe sure to run all these scripts in the root folder Next you will find the creation script for the container and a summary of the Nginx configuration. It’s important to link it with the WordPress container and setup the nf configuration file for the Nginx container. Now let’s create the Nginx container that will act as a proxy for your WordPress site. Hereafter you will find the creation script for the container and a summary of the Apache configuration: Once the MySQL container is created and running properly, you should create the WordPress container, and override the default Apache configuration with a custom defined settings like the ServerName that will be used in the next step. Next you will find the create script for the container: └─ create_wordpress.sh Mysql database containerīefore running the MySQL container you need to mount a pre-loaded WordPress database named as wordpress that has already defined the SITE_URL and HOME variables with the url for your site, like. So, first you should start setting up the file structure that will be used all over the post: In the following section you will find several scripts to run Docker containers, each one detailing both, its purpose and its configurations.
