Skip to content

Commit 5696477

Browse files
Deployment: Use host-gateway alias
The special host-gateway value resolves to the internal IP address of the host. See: https://docs.docker.com/reference/cli/docker/container/run/#add-host
1 parent 07dd8a2 commit 5696477

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

deployments/local/dev/docker-compose-keycloakx.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ services:
9999
- "--spi-admin-realm-restapi-extension-custom-admin-resources-users-provisioning-managed-attribute-pattern=(.*)"
100100
extra_hosts:
101101
# ${DOCKER_HOST_IP:-172.17.0.1} is host.docker.internal
102-
- "id.acme.test:${DOCKER_HOST_IP:-172.17.0.1}"
103-
- "apps.acme.test:${DOCKER_HOST_IP:-172.17.0.1}"
104-
- "ops.acme.test:${DOCKER_HOST_IP:-172.17.0.1}"
105-
- "account-service:${DOCKER_HOST_IP:-172.17.0.1}"
106-
- "samlidp.acme.test:${DOCKER_HOST_IP:-172.17.0.1}"
102+
# the special host-gateway value resolves to the internal IP address of the host.
103+
# see: https://docs.docker.com/reference/cli/docker/container/run/#add-host
104+
- "id.acme.test:host-gateway"
105+
- "apps.acme.test:host-gateway"
106+
- "ops.acme.test:host-gateway"
107+
- "account-service:host-gateway"
108+
- "samlidp.acme.test:host-gateway"
107109
ports:
108110
- "8080:8080"
109111
# - "9090:9090"

0 commit comments

Comments
 (0)