| 436 | `; |
| 437 | |
| 438 | const 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 | |
| 453 | const validatePorts = () => ` |
| 454 | # check if something is running on port 80 |