Skip to content

Commit 47c4457

Browse files
Safer host name
1 parent 4aa9675 commit 47c4457

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pkg/project/app_classic/Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ tasks:
258258
- |
259259
if [ "{{OS}}" = "windows" ]; then
260260
HOST_IP=$(powershell -command "Get-NetIpAddress | where { \$_.InterfaceAlias -Like '*WSL*' -and \$_.AddressFamily -EQ 'IPv4' } | select -ExpandProperty IPAddress")
261-
echo "EXTRA_HOST=host.containers.internal:$HOST_IP" > .env
261+
echo "EXTRA_HOST=host.docker.internal:$HOST_IP" > .env
262262
else
263263
echo "EXTRA_HOST=localhost.dummy:127.0.0.1" > .env
264264
fi

pkg/project/app_classic/dispatcher/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ services:
1313
# See: https://documentation.suse.com/smart/container/html/rootless-podman/index.html#rootless-podman-configure-port-below-1024
1414
net.ipv4.ip_unprivileged_port_start: 0
1515
extra_hosts:
16-
# Fixes: "Sleeping for 5s to wait until port 4503 on host.containers.internal is available"
16+
# Fixes: "Sleeping for 5s to wait until port 4503 on host.docker.internal is available"
1717
# See: https://stackoverflow.com/questions/79098571/podman-container-cannot-connect-to-windows-host
1818
- "${EXTRA_HOST}"

pkg/project/app_cloud/Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ tasks:
239239
- |
240240
if [ "{{OS}}" = "windows" ]; then
241241
HOST_IP=$(powershell -command "Get-NetIpAddress | where { \$_.InterfaceAlias -Like '*WSL*' -and \$_.AddressFamily -EQ 'IPv4' } | select -ExpandProperty IPAddress")
242-
echo "EXTRA_HOST=host.containers.internal:$HOST_IP" > .env
242+
echo "EXTRA_HOST=host.docker.internal:$HOST_IP" > .env
243243
else
244244
echo "EXTRA_HOST=localhost.dummy:127.0.0.1" > .env
245245
fi

pkg/project/app_cloud/dispatcher/compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
ports:
66
- "80:80"
77
environment:
8-
- AEM_HOST=host.containers.internal
8+
- AEM_HOST=host.docker.internal
99
- AEM_IP=*.*.*.*
1010
- AEM_PORT=4503
1111
- DISP_LOG_LEVEL=Warn
@@ -25,6 +25,6 @@ services:
2525
# See: https://documentation.suse.com/smart/container/html/rootless-podman/index.html#rootless-podman-configure-port-below-1024
2626
net.ipv4.ip_unprivileged_port_start: 0
2727
extra_hosts:
28-
# Fixes: "Sleeping for 5s to wait until port 4503 on host.containers.internal is available"
28+
# Fixes: "Sleeping for 5s to wait until port 4503 on host.docker.internal is available"
2929
# See: https://stackoverflow.com/questions/79098571/podman-container-cannot-connect-to-windows-host
3030
- "${EXTRA_HOST}"

0 commit comments

Comments
 (0)