NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
20.98k stars 2.42k forks source link

My nginx proxy manager resets itself #3380

Open lidoror opened 7 months ago

lidoror commented 7 months ago

Hi everyone, I installed the Nginx proxy manager and it seems like every restart of the operating system which is proxmox lxc contianer the data of the container disappears. every reboot its like a fresh install and all the things I changed and did are disappearing even the passwords and mail I did. a little about the environment: I ran proxmox lxc container that has docker inside it (yea I know its a little junky but its works for all the rest of the containers)

the container has an NFS disk mounted to it and the data are saved there for some reason the Nginx proxy manager deletes all the data and acts like it's a fresh install after every reboot.

and i checked multiple time there are no problems with the NFS mount

this is the compose file I use

version: '3.8' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports:

janot928 commented 6 months ago

Hi, I have the same issue with nginx proxy manager running in docker on a VM. I use the website docker composed as is (https://nginxproxymanager.com/setup/#running-the-app) and i have not defined a maria DB. Everything is fine if I restart the docker, but as soon as i reboot the VM on witch docker is installed (ubuntu 22.04 LTS) it gets resset How could I fixed so that it doesn't nuke everythink i did everytime I reboot my server / VM ?

Thanks

jflecool2 commented 2 months ago

@lidoror I suspect that your issue is not with nginx proxy manager. You did mount /data to /root/proxy-manager/data, but /root isnt a hard drive in your context, because your Docker NPM is within a "proxmox lxc container". I dont know much about this tech so lets assume its a docker container (docker within docker). If THAT layer doesnt have a mount for /root (or /root/proxy-manager), then restarting that container will reset the content of /root, then your docker inside LXC will start with an empty folder. Just restart the NPM container itself (docker restart my-nginx-proxy-manager-container, NOT your os or your lxc thing) and if data is still there, the problem is not with NPM.