One website one environment.
- Clone this repository and go to the directory:
git clone https://github.com/garylab/dockerpress.git cd dockerpress - Copy
docker-compose.yml.sampletodocker-compose.yml:Customize thecp docker-compose.yml.sample docker-compose.yml
docker-compose.ymlfile as needed. E.g. nginx expose port80to host default, change it to another one if it was occupied. - Run the following command:
This will download wordpress automatically and start the containers.
docker compose up -d
- Open your browser and access http://localhost.
- The MySQL configurations default are (all of the values can be modified in
docker-compose.ymlfile):- Host:
mysql - Port:
3306 - DB Name:
wordpress - Username:
root - Password:
12345678
- Host: