Sign inSign up

jackyalt/datacontainer-wp-db

By jackyalt

•Updated over 8 years ago

This repository contains the wordpress installation

Image
0

95

jackyalt/datacontainer-wp-db repository overview

⁠datacontainer-wp-db

⁠This repository contains the wordpress installation and a mapping of the /var/www/html i /var/lib/mysql directories

⁠Docker run example:

docker create -v /var/lib/mysql -v /var/www/html --network exnet2 --name datacontainer jackyalt/datacontainer-wp-db

⁠Before installing WordPress, you must have a database installed

⁠Example:

docker run --name db -p 3306:3306 -d -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE1=wordpress -e MYSQL_USER1=wpress -e MYSQL_PASSWORD1=wpress orboan/dcsss-mariadb

⁠You can use the following script

⁠This script creates a network for the containers and a datacontainer to map the mysql and apache directories. And run the containers of apache and mariadb

docker network create exnet2

docker create -v /var/lib/mysql -v /var/www/html --network exnet2 --name datacontainer jackyalt/datacontainer-wp-db

docker run -d -p 8080:80 --volumes-from datacontainer --network exnet2 --name apache jackyalt/httpd-php

docker run --name db -p 3306:3306 -d -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE1=wordpress -e MYSQL_USER1=wpress -e MYSQL_PASSWORD1=wpress --network exnet2 --volumes-from datacontainer orboan/dcsss-mariadb

Tag summary

Content type

Image

Digest

Size

111.2 MB

Last updated

over 8 years ago

docker pull jackyalt/datacontainer-wp-db