fix: proxy connections

This commit is contained in:
Andras Bacsai committed 2023-09-22 08:52:07 +02:00
1 parent ebfc0bd1e1
commit 4ae7e46e81
4 files changed
+6 -5

No files matched your search

+1 -2
View File
@@ -20,11 +20,10 @@ function connectProxyToNetworks(Server $server) {
$commands = $networks->map(function ($network) {
return [
"echo '####### Connecting coolify-proxy to $network network...'",
"docker network ls --format '{{.Name}}' | grep '^$network$' >/dev/null 2>&1 || docker network create --attachable $network > /dev/null 2>&1",
"docker network ls --format '{{.Name}}' | grep '^$network$' || docker network create --attachable $network",
"docker network connect $network coolify-proxy >/dev/null 2>&1 || true",
];
});
return $commands->flatten();
}
function generate_default_proxy_configuration(Server $server)