Docker, Debian Wheezy base, NGINX. Sourcing NGINX from the nginx 1.9.1 repository.
$ docker build -t=colindensem/nginx -rm=true .
$ docker run -i -p 8080:80 colindensem/nginx
Go to http://127.0.0.1:8080, if using boot2docker, replace ip accordingly.
If successful you will see a Welcome to nginx output.
This is intended to use this image as a base for other projects to build upon. In that sense, it possibly does to much already, i.e. begins configuration tasks.
At this point it is usable to develop against for static sites, or a proxy.
NGINX is configured to look for files in /srv/application/public.
You need to map your application to that directory.
For development, you can launch using the volumes flag -v
$ docker run -i -p 8080:80 -v \ /home/user/workspace/project:/srv/application \ --name project \ colindensem/nginx
- Handle logging, both rotation and logs output i.e. Automating Docker Logging: ElasticSearch, Logstash, Kibana, and Logspout
Multiple other docker file authors, every talk, example and gist.