MCPcopy
hub / github.com/Dokploy/dokploy / setupNetwork

Function setupNetwork

packages/server/src/setup/server-setup.ts:438–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

436 `;
437
438const setupNetwork = () => `
439 # Check if the dokploy-network already exists
440 if $SUDO_CMD docker network ls | grep -q 'dokploy-network'; then
441 echo "Network dokploy-network already exists ✅"
442 else
443 # Create the dokploy-network if it doesn't exist
444 if $SUDO_CMD docker network create --driver overlay --attachable dokploy-network; then
445 echo "Network created ✅"
446 else
447 echo "Failed to create dokploy-network ❌" >&2
448 exit 1
449 fi
450 fi
451`;
452
453const validatePorts = () => `
454 # check if something is running on port 80

Callers 1

defaultCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected