Sign inSign up

jbthechamp/docker-wordpress-nginx

By jbthechamp

Updated over 10 years ago

# docker-press-nginx A Dockerfile that installs the latest wordpress, nginx, php-apc and php-fpm.

Image
1

2.9K

jbthechamp/docker-wordpress-nginx repository overview

docker-press-nginx

A Dockerfile that installs the latest wordpress, nginx, php-apc and php-fpm.

Installation

The easiest way to get this docker image installed is to pull the latest version from the Docker registry:

$ docker pull jbthechamp/docker-wordpress-nginx

If you'd like to build the image yourself then:

$ git clone https://github.com/jdesk/docker-wordpress-nginx
$ cd docker-press-nginx
$ sudo docker build -t="jbthechamp/docker-wordpress-nginx" .

Usage

To spawn a new instance of wordpress on port 80. The -p 80:80 maps the internal docker port 80 to the outside port 80 of the host machine.

$ sudo docker run -p 80:80 --name docker-wordpress-nginx -d jbthechamp/docker-wordpress-nginx

Start your newly created docker.

$ sudo docker start docker-wordpress-nginx

After starting the docker-wordpress-nginx check to see if it started and the port mapping is correct. This will also report the port mapping between the docker container and the host machine.

$ sudo docker ps

0.0.0.0:80 -> 80/tcp docker-wordpress-nginx

##enjoy

You can the visit the following URL in a browser on your host machine to get started:

http://127.0.0.1:80

Tag summary

Content type

Image

Digest

Size

213.7 MB

Last updated

over 10 years ago

docker pull jbthechamp/docker-wordpress-nginx