- 1,069
- 444
Last edited:
Can you repaste the template file as code? When I am not at work, I use my couch laptop, which has a 12,5" screen with with a misserable resolution.
Make sure to add the nginx container to the other container network as well. And keep in mind: localhost in a container is local from the container perspective and not the host's perspective!
The location snippets I provided, expect the same "path" to be present at the target. Though you wanted to use subdomains, which will make your whole reverse proxy experience way more pleasent than path-based reverse proxying (especialy if you re-map paths). Also Portainer always had an odd effect for me in the past: rp worked reliable until the Portainer container got restarted - in order for it to work again I had to restart the nginx container.. this makes absolutly no sense to me, but this is how it was.
Make sure to add the nginx container to the other container network as well. And keep in mind: localhost in a container is local from the container perspective and not the host's perspective!
The location snippets I provided, expect the same "path" to be present at the target. Though you wanted to use subdomains, which will make your whole reverse proxy experience way more pleasent than path-based reverse proxying (especialy if you re-map paths). Also Portainer always had an odd effect for me in the past: rp worked reliable until the Portainer container got restarted - in order for it to work again I had to restart the nginx container.. this makes absolutly no sense to me, but this is how it was.