Reverse Proxy

I took the information from this GitHub:

https://github.com/jc21/nginx-proxy-manager

My compose file looks like this:

version: "3"
services:
  app:
    container_name: nginxProxMan
    image: 'jc21/nginx-proxy-manager:latest'
    restart: always
    ports:
      - '4780:80'
      - '4743:443'
      - '4781:81'
    environment:
      DB_MYSQL_HOST: "db"
      DB_MYSQL_PORT: 3306
      DB_MYSQL_USER: "npm"
      DB_MYSQL_PASSWORD: "npm"
      DB_MYSQL_NAME: "npm"
    volumes:
      - /home/raph/dockerRaph/nginxManager/data:/data
      - /home/raph/dockerRaph/nginxManager/letsencrypt:/etc/letsencrypt
    depends_on:
      - db
  db:
    container_name: nginxProxManDB
    image: jc21/mariadb-aria:10.4
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: 'npm'
      MYSQL_DATABASE: 'npm'
      MYSQL_USER: 'npm'
      MYSQL_PASSWORD: 'npm'
    volumes:
      - /home/raph/dockerRaph/nginxManager/mysql:/var/lib/mysql


Then from your host go to localhost:4781 or whatever port you set the 81 port to.  Default creds are admin@example.com and changeme

Then before creating a new proxy host, you want to change your domain DNS to point to your home IP address.  I use google domains, so I sign into domains.google.com, click on DNS, and in the customer resource records, I added an A record for *.odrallag.com to point to my home IP.  So that anything .odrallag.com will all route to my house.  Then the nginx manager would be the one to route it to the right hose.

Kk, after updating the admin password and once signed in click on Proxy Hosts > Add Proxy Host

Domain name would the web address you want to resolve.  Something like sonarr.djheadache.com.  Scheme I set to http.  Forward Hostname / IP would be the internal IP address of your machine.  Forward Port would be the port you mapped for sonarr.  I enabled the Block Common Exploits and Websockets Support.

Then click on the SSL tab at the top.  Click the drop down to request a new ssl.  Enable the Force SSL.  Hit save.  It should take a little time to create and cut the new cert.  Once all that finishes, it should bring you back to the dashboard and you should be able to click on your proxy host and it would bring you to your sonarr page.

After that, just do the same for Radarr. I even set one up for my plex, so I can connect to my plex directly instead of over the plex network.