Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.69 KB

File metadata and controls

71 lines (50 loc) · 1.69 KB

Wordpress quickstart

Wordpress Quickstart, it is a preconfigured contenerized LAMP stack configured to run wordpress with folder storage persistence.

Steps

  1. Clone the repository:
git clone git@github.com:markh0rr/dockerized-wordpress.git
  1. Setup the project:
make setup
What is done underneat
  1. Download the wordpress software as a zip from wordpress.org/download.

  2. Unzips the wordpress zip and store the resulting folder in the logic folder logic/ as a folder named wordpress.

  3. Creates a public key:

ssh-keygen -t rsa -m PEM -b 4096 -C "wordpress_cms" -f ./admin/.keys/cms.key -N ""
  1. Create self signed ssl certificates:
openssl req -new -key admin/.keys/cms.key -out admin/certificates/crm.csr
openssl x509 -req -in admin/certificates/crm.csr -signkey admin/.keys/cms.key -out admin/certificates/cms.crt -days 365
  1. Adds the content of ./debug/wp-config.php to logic/wordpress/wp-config.php. This enables the error logs to be visible in wp-content/debug.log.

  1. Build The containers
make build
  1. Run wordpress:
make run

Access the website and administration pannel

On the first access to the website, wordpress initiates the website and asks to create the admin account.

The website is visible on wordpress localhost:8080.

The admin pannel is available at localhost:8080/wp-admin.

Annex

Shell into docker:

docker ps 
docker exec -it <container_id> sh 

Troubleshoot the database from within the cms logic container.

apk add mysql-client
mysql -u root -p -h cms_db