Sign inSign up

artburkart/nginx-map2app

By artburkart

•Updated about 11 years ago

Quick and dirty proxy setup for serving an app

Image
0

484

artburkart/nginx-map2app repository overview

⁠Quick and dirty proxy to app

Sometimes I like to use docker-compose to start up an nginx container to proxy requests to another container. This is my quick and dirty solution.

I don't use this in production; it's mostly there to help me develop Dockerfiles for other applications.

I've included an example docker-compose.yml file in the GitHub repo⁠.

docker-compose up -d

⁠If you're not familiar with docker-compose, you can achieve the same thing:

docker run -d -p 80 --name hello-world tutum/hello-world
docker run -d -p 9090:80 --link hello-world:hello-world -e APP_PROXY=http://hello-world:80 nginx-map2app

Tag summary

Content type

Image

Digest

sha256:893028161…

Size

52.2 MB

Last updated

about 11 years ago

docker pull artburkart/nginx-map2app