Simple, configurable reverse proxy using Nginx
docker pull pascalc/static-proxy
- Set the environment variable
PROXY
to where you want to Nginx to proxy/api
to. - Mount any static files you want to serve into
/var/www/html
version: '2'
services:
nginx:
image: pascalc/static-proxy
ports:
- "8000:80"
volumes:
- "./public:/var/www/html"
environment:
- PROXY=http://echo.jsontest.com/