It includes a
Docker Compose configuration file
to simplify starting a Docker container for this WordPress image with a container
for the official MariaDB image, which provides
a database for the WordPress installation.
To use this repository, install the Docker Engine
(on Mac, also create/start a Docker Machine).
Then clone the repository (recursively, to synchronize the Git submodule),
change to its working directory, and create/start a container with the image:
git clone --recursive https://github.com/mykmelez/wordpress-pwa.git cd wordpress-pwa docker-compose up
You should be able to go to http://localhost:8080 on Linux to access
the WordPress installation. On Mac, replace
localhost with the IP address
of your Docker machine (
docker-machine ip *name-of-machine*).
Deployment To sloppy
The repository includes a
sloppy configuration file
to deploy the image to sloppy. The file is based on
the WordPress quickstarter.
To use it, invoke
sloppy with the file and a set of variables to replace
references in the file:
sloppy start sloppy.json -var=USERNAME:*username*,URI:*mydomain.sloppy.zone*,DBUSER:*db-user-for-wordpress*,DBPASS:*db-password-for-wordpress*,DBROOT:*db-root-password*