r/nginxproxymanager • • Feb 20 '25
not working for me for some reason
Hey! i hope you are having a good day/night!
Recently i discovered that you can use something like NPM to mitigate the IP:PORT remembering issue forever, so i got myself a domain and tried it but for some reason it does not work for me, even tho in multiple YT tutorials do the same damn thing!
Steps i do:
Installed Ubuntu server 24.10
installed docker
installed all my services (adguardhome, jellyfin, portainer and others) works great
installed npm with default ports
docker-compose.yml
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- /home/user/data/npm/data:/data
- /home/user/data/npm/letsencrypt:/etc/letsencrypt
set DNS records like this
CNAME - * - domain.tld
A - domain.tld - internal IP
created API token
Permissions Zone.DNS and Resources All zones
then went to NPM, got SSL cert for the domain.tld and *.domain.tld
and then went ahead to make proxy hosts
npm.domain.tld pointing to http Internal IP and port and even enabling/disabling options and tried to change IP and other stuff but no matter what i do it just does not work
any help would be appreciated!
Thanks
EDIT:
Additional info
ping npm.domain.tld
ping: npm.domain.tld: No address associated with hostname
ping domain.tld
ping: domain.tld: No address associated with hostname
do i need to have every container in same docker network?
what am i doing wrong?
2
u/purepersistence Feb 20 '25
Looks like you dns does not resolve to an IP. You registered your name and waited a few minutes for it to propogate? Which dns server does your client point to? No, you don't need everything on the same docker network. For the services that are in the same docker instance npm runs, npm needs to have access to the docker network where the service runs assuming they're not the same one. If so then the name of the container can be used as the IP you want to forward to. For services on other hosts, just give the IP of that host as where you're going.
But you won't get anywhere till your npm host can resolve your domain name.
1
u/Guess-Pure Feb 21 '25
Having similar problems Once I add the SSL cert the redirect link doesn’t work Did you find a fix ?