refactor(network): enhance docker network creation with ipv6 fallback

This commit is contained in:
Andras Bacsai
2025-03-25 11:27:59 +01:00
parent df25b65ce7
commit bc297c4296
4 changed files with 30 additions and 6 deletions

View File

@@ -30,7 +30,10 @@ fi
# Make sure coolify network exists
# It is created when starting Coolify with docker compose
docker network create --attachable coolify 2>/dev/null
if ! docker network create --attachable --ipv6 coolify 2>/dev/null; then
echo "Failed to create coolify network with ipv6. Trying without ipv6..."
docker network create --attachable coolify 2>/dev/null
fi
# docker network create --attachable --driver=overlay coolify-overlay 2>/dev/null
if [ -f /data/coolify/source/docker-compose.custom.yml ]; then