Public Repository

Last pushed: 3 years ago
Short Description
This images contain wordpress with Apache, Php and mysql on Ubuntu platform
Full Description

Docker File -

FROM ubuntu:14.04
MAINTAINER Satyendra ""
RUN apt-get update && apt-get -y install apache2 php5 php5-mysql supervisor wget
RUN echo 'mysql-server mysql-server/root_password password wordpress' | debconf-set-selections && echo 'mysql-server mysql-server/root_password_again password wordpress' | debconf-set-selections

RUN apt-get install -qy mysql-server
RUN wget && tar -xf latest.tar.gz -C /var/www/html/
RUN (/usr/bin/mysqld_safe &); sleep 5; mysqladmin -u root -pwordpress create wordpress

COPY wp-config.php /var/www/html/wordpress/wp-config.php
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

CMD [" /usr/bin/supervisord & "]


Download This image

docker pull 009satya/wordpress

Run wordpress docker parmaently

docker run --name wordpressdaemonV2 --restart=always -d -p 8086:8086 <IMAGEID> /bin/sh -c "while true; do echo WORDPRESS DAEMON; sleep 1; done"

Note - Modify apache listen parameter for 8086 port

if required run

supervisord &

it will run both mysql and apache both on single container.

Open Browser as

http://<HOST SERVER IP>:8086/html/wordpress/wp-admin/install.php

Modify wp-config.php file for username/password and DB mentioned Dockerfile as above.

Docker Pull Command