Local gives bad gateway unless using internal docker ip #1645

Closed
opened 2026-04-05 19:38:17 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @JanRK on 4/4/2025

I'm using the docker compose setup, and want to run an additional service on the pangolin host. I add the local site, and add the resource.

Curl to localhost works.

I've tried following, but not working:
Using localhost
Using 127.0.0.1
Using vps IP
Using 172.17.0.1 from the documentation

To get it working I had to add the service to the same compose file, and find the docker IP with docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $SERVICENAME and then enter that IP (172.18.0.2).

Is this the only way to get it working? I am worried that the docker IP might change over time.

Also, thanks for an awesome app!

*Originally created by @JanRK on 4/4/2025* I'm using the docker compose setup, and want to run an additional service on the pangolin host. I add the local site, and add the resource. Curl to localhost works. I've tried following, but not working: Using localhost Using 127.0.0.1 Using vps IP Using 172.17.0.1 from the documentation To get it working I had to add the service to the same compose file, and find the docker IP with `docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $SERVICENAME` and then enter that IP (172.18.0.2). Is this the only way to get it working? I am worried that the docker IP might change over time. Also, thanks for an awesome app!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1645