dockerfiles
dockerfiles copied to clipboard
Please document the hc-dc link setup
<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>
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/