It won’t be long till I’ll get my new virtual server with docker support. Right now I’m using apache with virtual hosts to redirect from different domains to different web applications. The questions arises: How can I do the redirection with web applications inside docker instances? This blog article shall document my investigations into this topic. I’ll revisit it after some hands on experience. Right now it’s just the result of web research.
Automated nginx proxy for Docker containers using docker-gen
nginx-proxy sets up a container running nginx and docker-gen. docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are started and stopped.
You can find the project on github.