Skip to content

hooi5683/wordpress-vscode-devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wordpress-vscode-docker

This is a VSCode devcontainer boilerplate that enables developers to run and develop WordPress projects in a Docker container.

Why Use This?

To resolve performance issues in WordPress when setting up by simply binding the \wp-content directory to a physical folder.

How It Works

[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]

  1. 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)
  2. Open the folder in visual studio code
  3. Select option "Reopen in container" when VScode prompted suggestion.
  4. Wait for setup to complete
  5. That's it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published