deconst / content-service

An API for storing, indexing and retrieving documentation
MIT License
4 stars 9 forks source link

First steps for setting up docker #4

Closed kenperkins closed 9 years ago

kenperkins commented 9 years ago

This adds a docker file and some README changes for getting it setup.

@smashwilson I need some assistance, I can't quite recall how to invoke docker such that my port is exposed back to the local host.

smashwilson commented 9 years ago

@kenperkins Port mappings are specified at container creation. For this one, you would run:

docker run -p 80:8080 content-service

... to expose container port 8080 as host port 80.

kenperkins commented 9 years ago

@smashwilson that's why I did this one as a PR, I knew I needed a bit of guidance.

smashwilson commented 9 years ago

By the way: I set this up as an automated build on Dockerhub. As soon as this PR reaches master, docker pull deconst/content-service will fetch the latest version of this container.

kenperkins commented 9 years ago

I believe this is now ready for review, @smashwilson

smashwilson commented 9 years ago

:shipit: