Quick WordPress Installation using Docker
The goal of this project is to create a quick virtual machine setup with a WordPress installation for testing purposes. The following technologies are automatically installed for you:
- Ubuntu
- Apache
- MariaDB
- PHP
- phpMyAdmin
- WPCli
- WordPress
- Install Docker
- Install Docker Compose
- Find a directory on your computer that you'd like to install this repo
$ git clone [email protected]:russellmacshane/quick-wordpress.git
orgit clone https://github.com/russellmacshane/quick-wordpress.git
if you don't have your ssh keys setup$ cd quick-wordpress
- Your are strongly encouraged to modify the default passwords and WordPress setup information in the config file
$ docker-compose up -d
- Grab some ☕️ coffee, it'll take a bit to install all the necessary dependencies
- Make sure the container is up and running with
$ docker-compose ps
- Point your web browser over to http://localhost/ to view your WordPress site
- You can also get to phpMyAdmin by going to http://localhost/phpmyadmin/
- If you'd like to login into the container -
$ docker-compose exec qwp /bin/bash
- WordPress files are located in
/var/www/html
and you can run WPCli commands from there - This repo is mirrored from your local machine over to
/home/docker/quick-wordpress
on your container
- In order to do backup and restores:
$ docker-compose exec qwp qwcli backup
and follow the on screen instructions- If you'd like to restore from a previous backup -
$ docker-compose exec qwp qwcli restore
and follow the on screen instructions
$ docker-compose stop
to stop the container$ docker-compose start
to bring it back up again
- If you are ready to delete your WordPress Container -
$ docker-compose down