Nginx Proxy Manager Setup
Lets setup Nginx Proxy Manager. You can use this compose.yaml file here to get you started. You can also paste this into Dockge and name your stack accordingly.
If you create this container, the Web-Interface will be available at http://hostIP:80. As you can see we named the network for this "main-network". If for example you name your stack "nginx-proxy"... Dockge will name your network "nginx-proxy_main-network" for other containers.
The initial user mail will be admin@example.com and the password will be changeme.
Proxy your first container
For this example we will proxy CalibreWeb Automated. I will once again provide you with the complete compose.yaml for Dockge.
The magic happens at the very end. By adding
at the very end, we are telling docker that there will be a network somewhere which is called "nginx-proxy_main-network". This is the network we created in the above steps. Then we tell the container to hop onto that network using
In the container config itself. It is also adviced to give your container a proper name so we can idetify it by hostname laster on. This is done with
After all this is setup we can jump into the Web-Interface of our Proxy.
I picked the hostname server.lan for all my proxy hosts. You will need a DNS entry which points this hostname to the IP of your machine running the proxy. You will also need a CNAME entry in your DNS which points "yourChoice.server.lan" to "server.lan".
- For Domain Names you enter name you want as a sub-domain of your host.
- For the scheme you choose whatever your service uses for its Interface, here it is http
- For the hostname you can choose the container_name you entered before
- The Port will be just what the Interface uses again, here it is 8083
- You can always enable "Block Common Exploits" cause why not
- Make sure to enable Websockets if you App needs them
- The other tabs can be left as is
Now just go ahead and save your work. The Interface of Calibre-Web-Automated should now be accessible at http://calibreweb.server.lan