Skip to content

WordPress implementation in docker, download, configure and restore from wp-content and sql dump

Notifications You must be signed in to change notification settings

jptafe/wp-cli-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress implementation using wp-cli and Docker

Provides a basic scaffolding for auto-download and build stages with wp-content and sql dump included in the sub-folders

folders

  • ./scripts - Scripts for export and startup for use either inside or outside the containers
  • ./sql - A dump file of a completed wp-installation and configuration
  • ./wp-content - A fully populated folder with modules, themes and file uploads

Required files

  • docker-compse.yml - Creates database, phpmyadmin & wp-cli containers
  • .env - Required to set initial credentials for database and admin users

Installation

cp env_example .env
docker-compose up

Access

http://localhost:8080 - WordPress instance executing with inbuilt PHP webserver http://localhsot:9999 - PHPMyAdmin interface to manually inspect Database

Modification

edit ./scripts/wp_container_start.sh to add extra wp-cli features, such as the downloading and enabling of modules and themes.

export

./scripts/wp_container_export.sh 

Exports both database and wp-content files out of their respective RUNNING containers, to be pushed up to a private repository as backup.

Try in PWD

About

WordPress implementation in docker, download, configure and restore from wp-content and sql dump

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages