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

DIT-MC/wordpress

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress all-in-one dockerized demo

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

NB: A big thanks to jbfink and eugeneware!

Usage

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

$ docker run -p 8088:80 -d ditmc/wordpress

After starting the wordpress container 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.

$ docker ps

0.0.0.0:8088 -> 80/tcp

You can the visit the following URL in a browser on your host machine to get started. Get the IP of the docker host (docker-machine ip tutorial) and visit it in your browser:

http://192.168.99.100:80

Don't forget to stop the container when you'll not need it anymore

$ docker stop CONTAINER_ID

or even completely remove it:

$ docker rm CONTAINER_ID

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

Languages

  • Shell 100.0%