Skip to content

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

License

Notifications You must be signed in to change notification settings

timlesallen/docker-wordpress-nginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-wordpress-nginx

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

NB: A big thanks to jbfink who did most of the hard work on the wordpress parts!

You can check out his Apache version here.

Installation

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

Usage

To spawn a new instance of wordpress:

$ sudo docker run -p 80 -d docker-wordpress-nginx

You'll see an ID output like:

d404cc2fa27b

Use this ID to check the port it's on:

$ sudo docker port d404cc2fa27b 80 # Make sure to change the ID to yours!

This command returns the container ID, which you can use to find the external port you can use to access Wordpress from your host machine:

$ docker port <container-id> 80

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

http://127.0.0.1:<port>

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published