Get Started with WordPress on Docker
Last updated
Last updated
This is a simple workflow that will utilize Docker to run WordPress websites within a contained environment. The intent behind this walk through is to prevent the need of using any form of Command Line Interfaces (CLI).
Ensure Virtualization is enabled within your BIOS.
If you are unsure how to do this then lookup something like "Enable Virtualization on Dell Laptop".
Some Systems may not support virtualization and if this is the case there are alternatives to still create the isolated environments.
Before you restart your PC/Laptop you may have a certain setting enabled within Windows 10/11 that may prevent you from entering the BIOS. There is a setting called "Fast Startup" that is intended for devices that still rely on Hard Drives to shorten boot times. Due to this, you CANNOT access the BIOS menu while enabled.
NOTE: If you are not running windows you can skip the next part.
Open Control Panel.
Click on Hardware and Sound.
Click on Power Options.
Click the "Choose what the power button does" option.
Click the "Change settings that are currently unavailable" option.
Under the "Shutdown settings" section, uncheck the "Turn on fast startup" option.
Click Save changes.
The below is for Dell related systems though the process is pretty similar across all systems.
Power on your system.
Press F2 when the Dell logo appears to enter BIOS setup.
Go to the Virtualization settings. The path can vary based on your system model:
Advanced > Virtualization Or
Virtualization Support > Virtualization
Set Virtualization to Enabled.
Set Virtualization for Direct-IO (or VT-d) to Enabled.
Save and Exit.
The system reboots.
This is where WordPress and its database MySQL will be running through. Both will run in an isolated environment and have a few arguments passed to allow us access to the needed files for the website.
Here we will sync the websites theme to a repository so we can both share and deploy our work as needed. There are alternatives like "Git" that you can further learn to bypass the need for GitHub desktop but realistically it isn't necessary.
Is a "Integrated Development Environment" or "IDE" for short that will assist you in building websites. Think of it like an overpowered notepad. It will assist you and inform you of any discrepancies as you continue to build the site.
NOTE: VS-Code isn't necessary and you can choose your preferred IDE. I prefer VS-Code and therefore will be using this as we create this workflow.