Public Repository

Last pushed: a year 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 "009satya@gmail.com"
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 http://wordpress.org/latest.tar.gz && 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

EXPOSE 8086
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
Owner
009satya

Comments (0)