Skip to content

markh0rr/dockerized-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published