Skip to content

jnplonte/wordpress-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WORDPRESS WEB

license

Version

v1.0.0

Dependencies

Demo

This create 2 new folders beside your docker-compose.yml file.

  • wp-data - used to store and restore database dumps
  • wp-app - the location of your wordpress application

back-up data to wp-data

  • sudo bash export-database.sh

Installation

start docker

  • build docker image by running docker-compose build

  • running docker image by running docker-compose up

  • start docker image by running docker-compose start

  • check docker inforation by running docker-compose ps

  • identify the docker inforation by running docker inspect <docker-name>

stop docker

  • stop docker image by running docker-compose stop
  • killing docker image by running docker-compose kill
  • removing docker image by running docker-compose rm
  • down docker image by running docker-compose down --volumes

connect to mysql

  • docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' wordpress-web_wordpressdb_1
  • mysql -uwordpress -p -h<ip-address>

explore docker filesystem

  • docker run -t -i wordpress-web_wordpress_1 /bin/bash

check docker information

  • docker inspect wordpress-web_wordpress_1 | grep "IPAddress"
  • docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' wordpress-web_wordpress_1

Releases

No releases published

Packages

No packages published