Skip to content

oskarhane/docker-wordpress-nginx-ssh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-wordpress-nginx-ssh

A Dockerfile that installs the latest wordpress, nginx, php-apc, php-fpm and openssh.
Now with memcached caching straight from NGiNX!

This is a modified fork from eugeneware. All credits should go to him.

Installation

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

Usage

To spawn a new instance of wordpress:

$ sudo docker run -p 80 -p 22 -d -t docker-wordpress-nginx-ssh

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>

To enable memcached caching straight from NGiNX, goto WP-FFPC settings page and press the save button. Thats it.

To get the SSH user wordpress's password so you can login and edit files, check the top of the docker container logs for it.

$ docker logs <container-id>

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%