Nginx Proxy Manager
This is an example of DNS based proxying with Nginx Proxy Manager.
This example assumes that you are trying to access OliveTin at olivetin.npm.teratan.lan and already have a DNS record pointing to the IP address of the Nginx Proxy Manager. This also assumes you are running Nginx Proxy Manager and OliveTin using Docker Compose.
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
olivetin:
container_name: olivetin
image: jamesread/olivetin
volumes:
- ./OliveTin:/config # replace host path or volume as needed
ports:
- "1337:1337"
restart: unless-stopped
Note that OliveTin needs a configuration file to run, see the docker compose install instructions for a bit more detail.
Assuming you have Nginx Proxy Manager running, start by adding a new proxy host.
-
Domain Names: olivetin.npm.teratan.lan (again, assume this is the domain you have set up in your DNS)
-
Scheme: http (OliveTin does support HTTPS if you create your own certificates, but it is more normal to speak HTTP between Nginx and OliveTin, and just use HTTPS to the proxy).
-
Forward Hostname/IP: 192.168.66.168 (change this to be the IP address of your docker host)
-
Forward Port: 1337 (this is the default port for OliveTin)
-
Websockets Support: Yes (OliveTin uses websockets for the Web UI)
That really should be all that you need to get OliveTin working with Nginx Proxy Manager. If you have any issues, please check the logs of both OliveTin and Nginx Proxy Manager for any errors, and look for ways of getting support.