WordPress + Docker Compose = ❤️
This stack includes the following components:
- WordPress
- MySQL 5.7
- PHPMyAdmin
- Docker >=
18.09.1, build 4c52b90
- Docker Compose >=
version 1.22.0, build f46880fe
Clone this repository:
git clone git@github.com:klipitkas/wordpress-docker.git
$ cd wordpress-docker
$ docker-compose up -d
$ docker-compose down
For multiple WordPress installations the easiest approach would be to copy the cloned directory and name it appropriately:
$ cp -r wordpress-docker project-name
$ cd project-name
Cleanup the previous project files in order to start fresh:
$ bash clean.sh
You can access the WordPress installation at:
The administrative URL can be found at:
To access the database you can use PHPMyAdmin at:
The credentials are the following:
- Username: wordpress
- Password: wordpress
- Database: wordpress
or for the root account:
- Username: root
- Password: root
You can also access the database from within the container:
$ docker-compose exec database bash
$ mysql -u wordpress -pwordpress wordpress
All changes are saved in the following volumes:
- database: The database volume, containing everything MySQL related.
- wordpress: The wordpress volume, containing all the files needed for WordPress.
Send them to klipitkas@gmail.com or open an issue.