-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Create the proxy host as you said as something like ports:
- '81:81' # Remove this line That way the admin panel will not be exposed to the outside of the container and only be accessible through the proxy host. If your npm instance ever breaks and the normal proxy host is not available, you can re-add that line to temporarily access it via port 81 once again. |
Beta Was this translation helpful? Give feedback.
-
in my case |
Beta Was this translation helpful? Give feedback.
Create the proxy host as you said as something like
proxy.mydomain.com
targetinglocalhost
on port81
. Then you can edit the docker-compose file and remove the lineThat way the admin panel will not be exposed to the outside of the container and only be accessible through the proxy host. If your npm instance ever breaks and the normal proxy host is not available, you can re-add that line to temporarily access it via port 81 once again.