/wordpress-docker-compose

wordpress-docker-compose

Primary LanguageShell

About

This project is build to install WordPress with NGINX and PhpMyAdmin using docker-compose.

How to start the project

  1. Register a new hostname entry in the hosts file (/etc/hosts)
local.wp.com	 127.0.0.1
  1. Create a copy of the example env file:
cp .env.example .env
  1. 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/

Stop all containers

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