diff --git a/bootstrap/helpers/proxy.php b/bootstrap/helpers/proxy.php index ed18dfe760..56824e5b98 100644 --- a/bootstrap/helpers/proxy.php +++ b/bootstrap/helpers/proxy.php @@ -111,7 +111,7 @@ function connectProxyToNetworks(Server $server) $commands = $networks->map(function ($network) { $safe = escapeshellarg($network); return [ - "docker network ls --format '{{.Name}}' | grep '^{$network}$' >/dev/null || docker network create --driver overlay --attachable {$safe} >/dev/null", + "docker network ls --format '{{.Name}}' | grep '^{$network}$' >/dev/null || docker network create --ipv6 --driver overlay --attachable {$safe} >/dev/null", "docker network connect {$safe} coolify-proxy >/dev/null 2>&1 || true", "echo 'Successfully connected coolify-proxy to {$safe} network.'", ]; @@ -120,7 +120,7 @@ function connectProxyToNetworks(Server $server) $commands = $networks->map(function ($network) { $safe = escapeshellarg($network); return [ - "docker network ls --format '{{.Name}}' | grep '^{$network}$' >/dev/null || docker network create --attachable {$safe} >/dev/null", + "docker network ls --format '{{.Name}}' | grep '^{$network}$' >/dev/null || docker network create --ipv6 --attachable {$safe} >/dev/null", "docker network connect {$safe} coolify-proxy >/dev/null 2>&1 || true", "echo 'Successfully connected coolify-proxy to {$safe} network.'", ]; @@ -146,7 +146,7 @@ function ensureProxyNetworksExist(Server $server) $safe = escapeshellarg($network); return [ "echo 'Ensuring network {$safe} exists...'", - "docker network ls --format '{{.Name}}' | grep -q '^{$network}$' || docker network create --driver overlay --attachable {$safe}", + "docker network ls --format '{{.Name}}' | grep -q '^{$network}$' || docker network create --ipv6 --driver overlay --attachable {$safe}", ]; }); } else { @@ -154,7 +154,7 @@ function ensureProxyNetworksExist(Server $server) $safe = escapeshellarg($network); return [ "echo 'Ensuring network {$safe} exists...'", - "docker network ls --format '{{.Name}}' | grep -q '^{$network}$' || docker network create --attachable {$safe}", + "docker network ls --format '{{.Name}}' | grep -q '^{$network}$' || docker network create --ipv6 --attachable {$safe}", ]; }); }