Reverse proxy nginx dockerfile for our DO host.
This docker container needs to be running on the DO droplet!
All traffic is routed to the proxy and sent to the right website depending on its respective domain name.
Image is maintained in docker hub here: https://hub.docker.com/r/gdggr/web-proxy/
All management of running docker containers on the droplet will use droplet-manager.sh.
Management script for the droplet. Allows for updating individual containers or updating everything and getting it running. Use this tool to do any "normal" pulls or restarts of a particular container. It will attempt to backup, pull latest tag, stop, kill, and run the container with all the pre-defined parameters.
$ ./droplet-manager.sh
To test things locally using this script, you still need to update the constants for the port numbers. It's set specifically to the IP:PORT of the DO droplet right now for reverse proxy purposes and could be enhanced to have a --testing mode someday if necessary.
Docker Hub doesn't have automated builds for the GDGGR organization (only your personal account I guess). This makes the build and push consistent to the different repos.
Best way to use docker on a Mac: https://docs.docker.com/engine/installation/mac/
It's pretty annoying to remember to do these commands when you want to start docker-machine.. This handles that, but you still have to manually run the eval "$(docker-machine env default)" bit when it prompts.