Hi all!
I am looking at trying to get NPM - NGINX proxy manager working, and for the life of me cant get it working.
git is installed, and i have tried with #master and without, still no luck, so now i am trying here.
maybe i am going the wrong way here? I just want to add NPM to my container list.
cheers
here is my stack config for portainer, or otherwise known as docker-compose.yml if you prefer that route. I added notes after # for reminders for myself, maybe they help you.
Portainer -> Stacks -> Add Stack:
Name: nginx-pm
Paste this in web editor:
#####################################################################################
#####################################################################################
##
## Docker Compose File: NGINX Proxy Manager
## Function: Reverse Proxy
##
## Documentation: https://nginxproxymanager.com/setup/#running-the-app
## https://nginxproxymanager.com/
##
## Updating NGINX? Make sure to backup v1/data + v1/letsencrypt from Ubuntu VM,
## then make sure volume mapping reflects v1 data, not v2/v3 as it creates
## new ones every update/redeployment. It's bugged.
#####################################################################################
#####################################################################################
version: '3.8'
services:
app:
container_name: nginx-pm
image: 'jc21/nginx-proxy-manager:latest'
environment:
- PGID=1000 #echo $GID to get this
- PUID=1000 #echo $UID to get this
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- /home/YourUSERNAMEHere/data/nginx-pm:/data #host:container mapping
- /home/YourUSERNAMEHere/data/nginx-pm/letsencrypt:/etc/letsencrypt #host:container
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "200k"
restart: unless-stopped