Install NGINX Proxy Manager in OMV and Docker

NGINX Proxy Manager in OpenMediaVault and Docker

In OpenMediaVault, Tutorials, Video by dbtech

In this post we’ll look at How to Install NGINX Proxy Manager on OMV and Docker.

NGINX Proxy Manager lets you Expose web services on your network. Free SSL with Let’s Encrypt. Designed with security in mind. Perfect for home networks.

More info about the proxy manager here.

This proxy manager works a lot like Traefik, but is MUCH easier to setup and manage.

This tutorial assumes that you already have Docker and Portainer installed, most likely via OpenMediaVault.

Once you’re logged in via SSH, create a folder called nginx and a new file called config.json in that folder:

mkdir nginx
cd nginx
nano config.json

Then you can paste the following into the terminal screen:

{
  "database": {
    "engine": "mysql",
    "host": "db",
    "name": "npm",
    "user": "npm",
    "password": "npm",
    "port": 3306
  }
}

Save and close the file.

Now you’ll create a file called docker-compose.yml:

nano docker-compose.yml

Then paste the following in the terminal screen:

---
version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    ports:
      - '80:80' #HTTP Traffic
      - '81:81' #Dashboard Port
      - '443:443' #HTTPS Traffic
    volumes:
      - ./config.json:/app/config/production.json
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
  db:
    image: 'jc21/mariadb-aria:10.4'
    environment:
      MYSQL_ROOT_PASSWORD: 'npm'
      MYSQL_DATABASE: 'npm'
      MYSQL_USER: 'npm'
      MYSQL_PASSWORD: 'npm'
    volumes:
      - ./data/mysql:/var/lib/mysql

Save and close the file.

Then, to deploy the new container, you can enter the following in your terminal:

sudo docker-compose up -d

Normally we wouldn’t run this as sudo, but there have been incidents where an error comes up about Docker being installed in a non-standard location and running this as sudo seems to get around that.

That’s it. Once you’ve got it deployed, you can start adding URLs and pointing them to your different containers based on the port number of the installed application.

 

OpenMediaVault Tutorials

If you’re interested in other tutorials for your home server, check here: https://dbtechreviews.com/category/openmediavault/

/=========================================/

Like what I do? Want to be generous and help support my channel?

Here are some ways to support:

Patreon: https://dbte.ch/patreon

Ko-fi: https://dbte.ch/kofi

/=========================================/

Remember to leave a like on this video and subscribe if you want to see more!

/=========================================/

Follow Me:

Twitter: https://dbte.ch/tw

Facebook: https://dbte.ch/fb

Subscribe: https://dbte.ch/ytsub