This repository serves as a training resource for getting started with Roots/Bedrock using Docker. Roots/Bedrock is a WordPress boilerplate that helps you manage your WordPress project's dependencies with Composer and provides a modern directory structure for your WordPress project.
To use this repository for training purposes, follow the steps below:
- Docker Desktop: Install Docker Desktop for your operating system.
- Docker Compose: Install Docker Compose for your operating system.
- Git: Install Git for version control.
Navigate into the cloned repository directory and start the Docker containers using Docker Compose:
cd bedrock-docker-training
cd wp
make config
cd ..
docker-compose up -d
This command will spin up the necessary Docker containers for running Roots/Bedrock.
Once the containers are up and running, you can access WordPress by visiting http://localhost:80 in your web browser. Follow the WordPress installation instructions to set up your WordPress site.
You can develop your WordPress site by making changes to the files in the web/app/themes
directory for themes and web/app/plugins
directory for plugins. Any changes you make will be reflected in real-time as the Docker containers are running.
To stop the Docker containers, run the following command:
docker-compose down
Contributions to this repository are welcome. If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This repository is provided for training purposes without any specific license. Feel free to use, modify, and distribute it as needed for your training sessions.