dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

Please document the hc-dc link setup

Open heiko-braun opened this issue 10 years ago • 1 comments

 <domain-controller>
        <remote host="${env.DOMAIN_CONTROLLER_PORT_9999_TCP_ADDR}" port="${env.DOMAIN_CONTROLLER_PORT_9999_TCP_PORT}" username="@WILDFLY_MANAGEMENT_USER@" security-realm="DomainControllerRealm"/>
    </domain-controller>

heiko-braun avatar Jul 03 '15 10:07 heiko-braun

The key is in the link --link dc:domain-controller.

Docker will inject environment variables into the container (the host controller in this case) from the linked container (the domain controller).

env.DOMAIN_CONTROLLER_PORT_9999_TCP_ADDR will resolve to something like 172.17.0.1 which is the address of the domain controller.

This link will help you understand more: https://docs.docker.com/compose/link-env-deprecated/

SuperShalabi avatar Aug 24 '17 11:08 SuperShalabi