apiconnect-docker icon indicating copy to clipboard operation
apiconnect-docker copied to clipboard

how to expose API Connect host names as the docker host machine hostname/ip?

Open congmingwudi opened this issue 7 years ago • 2 comments

How do you expose the API Connect docker host names (apim ibmportal datapower microservice) as just the host name of the host machine?

The documentation in here describes updating your /etc/hosts file to map the ip address to these host names, but this doesn't allow them to be accessed external to he host machine. How do you map these docker host names so that they are exposed to the network as: /apim, /cmc. Or better, as : /apim/apim, /apim/cmc, /datapower, ...

congmingwudi avatar Mar 10 '17 07:03 congmingwudi

Were you able to resolve this issue?

sunnygoel8 avatar Aug 28 '17 05:08 sunnygoel8

I use Traefik (https://traefik.io/) as a reverse proxy for APIC. Then I can access the CMC on https://apimhostname.co.com/cmc the APIM on https://apimhostname.co.com/apim and the DataPower on https://datapowerhostname.co.com:9090
I use a combination of labels on the docker images as well as routing in the traefik.toml file. Let me know if you want/need more info.

geekosphere-net avatar Dec 05 '17 15:12 geekosphere-net