Git Product home page Git Product logo

docker-wordpress-nginx-ssh's Introduction

docker-wordpress-nginx-ssh

Deploy to Tutum

Join the chat at https://gitter.im/tlongren/docker-wordpress-nginx-ssh

A Dockerfile that installs the latest wordpress, nginx, php-apc and php-fpm, and openssh. Based heavily on this.

###Todo:

  1. Tighten permissions up a bit maybe, may not be worth the effort. If anyone has suggestions please leave a comment at the official Docker Hub Registry repository or on this GitHub issue.
  2. Implement Docker Compose for a quicker setup.
  3. Clean up README.
  4. Requests? Just make a comment on this GitHub issue if there's anything you'd like added or changed.

Installation

The easiest way get up and running with this docker container is to pull the latest stable version from the Docker Hub Registry:

$ docker pull tlongren/docker-wordpress-nginx-ssh:latest

If you'd like to build the image yourself:

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

Usage

The -p 80:80 maps the internal docker port 80 to the outside port 80 of the host machine. The other -p sets up sshd on port 2222.

$ sudo docker run -p 80:80 -p 2222:22 --name docker-name -d tlongren/docker-wordpress-nginx-ssh:latest

Start your newly created container, named docker-name.

$ sudo docker start docker-name

After starting the container docker-wordpress-nginx-ssh checks to see if it has 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, 3306/tcp, 0.0.0.0:2222->22/tcp

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

http://127.0.0.1:80

You can also SSH to your container on 127.0.0.1:2222. The default password is wordpress, and can also be found in .ssh-default-pass.

$ ssh -p 2222 [email protected]

Now that you've got SSH access, you can setup your FTP client the same way, or the SFTP Sublime Text plugin, for easy access to files.

You can view logs like this:

$ sudo docker logs docker-name

Bitdeli Badge

docker-wordpress-nginx-ssh's People

Contributors

bitdeli-chef avatar ekalinin avatar eugeneware avatar gitter-badger avatar manuelmeurer avatar mrtimuk avatar oskarhane avatar tlongren avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.