This repository contains a boilerplate setup for WordPress using the Bedrock directory structure and dockerized with containers for Nginx, PHP, and MariaDB.
To use this project, ensure that you have the following installed on your computer:
- Docker
- Docker Compose
- Make
-
Clone the project:
git clone [email protected]:phipngh/dockerized-wordpress.git
-
Change directory to the project directory:
cd dockerized-wordpress
-
Build the infrastructure:
make infra-build
-
Install WordPress/Composer packages:
make install
-
(Optional) Import database:
You can start over the brand new database by skipping this step or use database in daatbase folder:
make db-import
-
Access WordPress admin panel:
- URL: http://localhost/wp/wp-admin
- Username:
admin
- Password:
admin
Start docker containers:
make infra-up
Stop docker containers:
make infra-stop
Clean docker containers:
make infra-clean
Dump database:
make db-export
Access inside php container:
make php-inside
Access inside mariadb container:
make db-inside