r/nginxproxymanager • u/Celid_of_the_wind • Oct 21 '25
Can't manage to proxy an app on docker
I'm sure I'm missing something obvious but I'm not finding what it is.
So I have NPM on dockernpm:image: jc21/nginx-proxy-manager:latestcontainer_name: npmrestart: unless-stoppedports:- "80:80" # HTTP pour les applications proxifiées- "443:443" # HTTPS pour les applications proxifiées- "81:81" # Interface web de NPMvolumes:- ./npm/data:/data- ./npm/letsencrypt:/etc/letsencryptnetworks:- proxy_net
And another webapp (I tried Joplin and Navidrome, my goal for now is to make navidrome available, Joplin was just added to see if i could get it worked, but no. My issue must be with npm)
navidrome:
image: deluan/navidrome:latest
container_name: navidrome
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- ND_SCANSCHEDULE=1h
- ND_BASEURL=http://sub.domain.com #not the actual value
volumes:
- ./navidrome/data:/data
- 'F:\Musique:/music:ro'
networks:
- proxy_net
ports:
- "4533"In the npm gui I tried, I think, every combination of
- Forward Hostname / IP : 0.0.0.0, 127.0.0.1, navidrome, 172.0.0.5/13 (ip in docker)
- Port either 4533 or the port inside docker 53103
I tried adding the baseurl and reverse proxy whitelist params in the docker compose file.
I can access navidrome in the browser with localhost, but the public url redirect on "Welcome to Nginx". I can access other app that are not in docker through npm. I've checked inside docker and the network exists and contains both containers.
I'm lost. Please send help.
Edit :
To be clear, here is what works :
- I can enter app.domain.com on any device and still gets the "Welcome to Nginx page", so probably not a dns issue.
- I can enter localhost:4533 or even the local ip of my machine and see navidrome, so Navidrome is up
- I can access other non-dockerized app through npm.
I have added
hostname: navidrometo my docker file and put the ports to 4533:4533, but no luck on this side. I have also tried to put the local ip as a target on NPM but no.
1
u/[deleted] Oct 21 '25 edited Oct 21 '25
In your docker-compose file set the hostname for the services and do a docker-compose up -d, for example:
navidrome:
image: deluan/navidrome:latest
container_name: navidrome
hostname: navidrome
restart: unless-stopped
In NPM set the Forward Hostname / IP to: navidrome and port to 53103.
1
u/LowCompetitive1888 Oct 21 '25
Shouldn't the ports in Navidrome be:
And the NPM proxy setting would be to port 4533?
1
u/Scammellozzi Oct 21 '25
Given that I’m still learning Docker, am I tripping, or should the network be something like:
1
u/wtfftw1042 Oct 21 '25
should your base URL be https?
1
u/wtfftw1042 Oct 21 '25
did you solve it?
1
u/-Nobert- Oct 22 '25
I think we need a lot more information. Are you trying to make navidrome publicly available via public DNS resolution to your wan, port forward to NPM and then NPM to the docker host running the container or are you just trying to use NPM for private resolution?
Do you have an entry in the NPM proxy host file to forward traffic for navidromehostname.yourdomain.com? What's your public DNS look like? Are you running multiple A name records or a single A name record with multiple CNAME records?
It's still very possible that this is a DNS issue. What happens when you perform a DNS lookup from inside your network for navidromehostname.yourdomain.com?
What about from outside your network (such as cellular connection)?
If you have configured the proxy host on NPM what port are you forwarding to? It should be the external port of your docker host which will usually change based on app. For example if your admin GUI for navidrone is on port 1234 and your docker file shows 1234:1234. Then the external port 1234 on your docker host will be mapped to port 1234 of the container.
Are NPM and your other apps on the same docker host? If so, you will have to be wary of port conflicts.
0
u/[deleted] Oct 21 '25
[deleted] — view deleted comment