File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,13 @@ services:
99
99
- " --spi-admin-realm-restapi-extension-custom-admin-resources-users-provisioning-managed-attribute-pattern=(.*)"
100
100
extra_hosts :
101
101
# ${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"
107
109
ports :
108
110
- " 8080:8080"
109
111
# - "9090:9090"
You can’t perform that action at this time.
0 commit comments