This setup provides a reverse proxy for multiple services using docker. It uses Nginx as the reverse proxy and supports HTTP and HTTPS traffic.
NOTE: The commands assume you are using Linux.
chmod +x ./prepare.sh./prepare.shYou can configure your nginx-reverse-proxy to either use HTTP or HTTPS. For publicly exposed services I heavily recommend using HTTPS.
File named .env add the following to the file:
COMPOSE_FILE=docker-compose.yml:docker-compose-https.yml
By default this setup will expose the Nginx reverse proxy on the default HTTP port 80.
If you want to change the port to a different value you can in file named .env, add the following to e.g. expose it over port 9000:
HTTP_PORT=9000
To add settings on a proxy-wide basis, add your configuration file in my-proxy.conf
You can start the Nginx Reverse Proxy by running:
docker compose up -d