Resource icon

Docker Install nginx-proxy-manager

In this resource I will show you how to install the "Niginx-Proxy-Manager" docker container on synology. For this container we need also a working mariadb/mysql database. This database install is not included in this installation process. This you have to do before. When the database-server is running you have to create a empty database for NPM (my example is npm).

Screenshot 2020-04-24 at 14.22.21.png

You also have to create the config.json file like described on the site. In the json file following lines must be entered:
  "database": {
    "engine": "mysql",
    "host": "db",
    "name": "npm", name of the database
    "user": "npm",  user name database ex. root
    "password": "npm", password of this user.
    "port": 3306

Create a folder nginx-proxy-manager in the docker shared folder and copy the .json in this folder.

Then from your docker app in synology goto registry and download the image "jc21/nginx-proxy-manager".

Screenshot 2020-04-24 at 14.24.18.png

After downloading goto image and select the downloaded image and click launch button:

Screenshot 2020-04-24 at 14.25.47.png

Give your container the name you want to give or leave it default and then click on advanced settings:

Screenshot 2020-04-24 at 14.27.05.png

Next screen: enable autostart

Screenshot 2020-04-24 at 14.32.48.png

Next: screen: create volumes
Start with add file and select here the json file you have created:
Then make the two other folders with "add folder" button. Your screen must look like this:

Screenshot 2020-04-24 at 14.36.57.png

Network is bridge.
Screenshot 2020-04-24 at 14.37.22.png

Ports outside container you have to choose:

Screenshot 2020-04-24 at 14.38.16.png

Then make a link with your database: select the database container and give it an alias name: example db

Screenshot 2020-04-24 at 14.39.28.png

Environment: add "DISABLE_IPV6:true" if you don't use ipv6.

Screenshot 2020-04-24 at 14.41.20.png

Click apply -> next -> apply to start to create and start the container.
Then surf to http(s)://nas-ip:portnumber to open the configuration.

Default Administrator User
Email: [email protected]
Password: changeme

I did not check how to setup letsencrypt or any other ssl certificate.