How to use docker service names as hosts in Nginx-Proxy-Manager
Create a network for nginx-proxy-manager to use:
docker network create nginx-proxy-manager-network
Then add this to all the compose files that want to be referenced by Nginx-Proxy-Manager:
networks:
nginx-proxy-manager-network:
external: true
Now you can use the service name as the host in the Nginx-Proxy-Manager GUI:
Source | Destination |
---|---|
awwesome.suranyami.com |
http://awwesome:8088 |