Public Repository

Last pushed: 2 years ago
Short Description
a Docker container for Wordpress using nginx php-fpm and supervisord
Full Description

This repo contains a recipe for making a Docker container for Wordpress, using Nginx,php-fpm on Fedora, linked with a MariaDB/MySQL container. To build, make sure you have Docker installed, clone this repo somewhere, and then build both mariadb and wordpress images.

steps:
docker pull fedora/mariadb
docker run --name=mydb -e USER=wordpress -e PASS=admin123 -e NAME=wordpress -d fedora/mariadb
docker pull toxmc/fedora-nginx-wordpress
docker run -p 80:80 --link=mydb:db -d toxmc/fedora-nginx-wordpress
docker ps

Using volumes:
docker run -e USER=wordpress -e PASS=admin123 -e NAME=wordpress \
-v /mnt/db:/var/lib/mysql -d fedora/mariadb
docker run --link=the-mariadb-container:db -p 80 \
-v /mnt/wp-content:/var/www/html/wp-content -d toxmc/fedora-nginx-wordpress

last you mush add "xx.xx.xx.xx(ip) docker.val.xyz" into /etc/hosts file.

Docker Pull Command
Owner
toxmc