This is a VSCode devcontainer boilerplate that enables developers to run and develop WordPress projects in a Docker container.
To resolve performance issues in WordPress when setting up by simply binding the \wp-content directory to a physical folder.
[Volume]
- The folder
/var/www/html
is bound to a Docker volume. - This folder is accessible from Windows Explorer at the path:
\\wsl.localhost\docker-desktop-data\data\docker\volumes\wordpress-docker-template_wordpress-data\_data
[Use Cases]
- You can set up a git repository in the folder
\\wsl.localhost\docker-desktop-data\data\docker\volumes\wordpress-docker-template_wordpress-data\_data\wp-content\plugins
to develop your plugin and more.
[Instruction]
- Install extension: Dev Container, Docker, WSL and any other prompted extension (I can't really remember, please let me know so i can improve this documentation)
- Open the folder in visual studio code
- Select option "Reopen in container" when VScode prompted suggestion.
- Wait for setup to complete
- That's it.