A WordPress starter project that uses Docker Compose for quickly setting up your environment. This project uses LEMP stack which composed of Nginx, MariaDB, WordPress v4.9.8, and PHP-FPM v7.2.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
-
Install Docker and Compose. Click here for the official guide.
-
Clone this Git repository.
git clone https://github.com/edoswaldgo/docker-wordpress-lemp.git
-
Run Docker Compose
cd docker-wordpress-lemp docker-compose up -d
-
Open the URL ( http://localhost ) via web browser for initial WordPress setup.
-
Voila! Your environment is up and running.
docker-wordpress-lemp
+-- db-data
+-- logs
+-- nginx
| +-- wordpress.conf
+-- wordpress
| +-- ...
+-- docker-compose.yml
db-data
folder is the mounted volume for MariaDB persistence.logs
folder contains the logs of the Nginx container.nginx/wordpress.conf
is the default Nginx config for PHP-FPM integration.wordpress
folder is your usual project insidehtdocs
.- Note: WordPress Core and Uploads are not included in this Git project.
docker-compose.yml
is the Docker Compose config file for running the LEMP stack.
- Fork the Git project ( https://github.com/edoswaldgo/docker-wordpress-lemp )
- Create your issue branch (
git checkout -b fix/xxxxx
) - Commit your changes (
git commit -m "Fix issue xxxxx: <Commit Details Here>"
) - Push your branch to origin (
git push
) - Create a pull request.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE.md file for details