This project is build to install WordPress with NGINX and PhpMyAdmin using docker-compose.
- Register a new hostname entry in the hosts file (
/etc/hosts
)
local.wp.com 127.0.0.1
- Create a copy of the example env file:
cp .env.example .env
- Start containers
Start containers with the
-d
flag to run all containers in the background:
docker-compose up -d
In your web browser, navigate to http://local.wp.com
to set up a WordPress page. You can also reach the PhpMyAdmin interface at http://local.wp.com/pma/
docker-compose down
To remove all named volumes and completely all containers including orphaned docker containers of the docker-compose file you can run the following command:
docker-compose down --volumes --remove-orphans