diff --git a/public/avatars/avatar-1.png b/public/avatars/avatar-1.png deleted file mode 100644 index fc1e46b..0000000 Binary files a/public/avatars/avatar-1.png and /dev/null differ diff --git a/public/avatars/avatar-10.png b/public/avatars/avatar-10.png deleted file mode 100644 index 9c380ef..0000000 Binary files a/public/avatars/avatar-10.png and /dev/null differ diff --git a/public/avatars/avatar-11.png b/public/avatars/avatar-11.png deleted file mode 100644 index d8f1636..0000000 Binary files a/public/avatars/avatar-11.png and /dev/null differ diff --git a/public/avatars/avatar-12.png b/public/avatars/avatar-12.png deleted file mode 100644 index 7d7aefa..0000000 Binary files a/public/avatars/avatar-12.png and /dev/null differ diff --git a/public/avatars/avatar-2.png b/public/avatars/avatar-2.png deleted file mode 100644 index c2a0c5e..0000000 Binary files a/public/avatars/avatar-2.png and /dev/null differ diff --git a/public/avatars/avatar-3.png b/public/avatars/avatar-3.png deleted file mode 100644 index 042d477..0000000 Binary files a/public/avatars/avatar-3.png and /dev/null differ diff --git a/public/avatars/avatar-4.png b/public/avatars/avatar-4.png deleted file mode 100644 index 2dc876b..0000000 Binary files a/public/avatars/avatar-4.png and /dev/null differ diff --git a/public/avatars/avatar-5.png b/public/avatars/avatar-5.png deleted file mode 100644 index ecb81bc..0000000 Binary files a/public/avatars/avatar-5.png and /dev/null differ diff --git a/public/avatars/avatar-6.png b/public/avatars/avatar-6.png deleted file mode 100644 index 180887a..0000000 Binary files a/public/avatars/avatar-6.png and /dev/null differ diff --git a/public/avatars/avatar-7.png b/public/avatars/avatar-7.png deleted file mode 100644 index 77586a1..0000000 Binary files a/public/avatars/avatar-7.png and /dev/null differ diff --git a/public/avatars/avatar-8.png b/public/avatars/avatar-8.png deleted file mode 100644 index 69ca214..0000000 Binary files a/public/avatars/avatar-8.png and /dev/null differ diff --git a/public/avatars/avatar-9.png b/public/avatars/avatar-9.png deleted file mode 100644 index f8beefd..0000000 Binary files a/public/avatars/avatar-9.png and /dev/null differ diff --git a/public/feature.sh b/public/feature.sh new file mode 100644 index 0000000..631c472 --- /dev/null +++ b/public/feature.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +if [ "$(id -u)" != "0" ]; then + echo "This script must be run as root" >&2 + exit 1 +fi + +# check if is Mac OS +if [ "$(uname)" = "Darwin" ]; then + echo "This script must be run on Linux" >&2 + exit 1 +fi + + +# check if is running inside a container +if [ -f /.dockerenv ]; then + echo "This script must be run on Linux" >&2 + exit 1 +fi + +# check if something is running on port 80 +if ss -tulnp | grep ':80 ' >/dev/null; then + echo "Error: something is already running on port 80" >&2 + exit 1 +fi + +# check if something is running on port 443 +if ss -tulnp | grep ':443 ' >/dev/null; then + echo "Error: something is already running on port 443" >&2 + exit 1 +fi + + + + + + +command_exists() { + command -v "$@" > /dev/null 2>&1 +} + +if command_exists docker; then + echo "Docker already installed" +else + curl -sSL https://get.docker.com | sh +fi + +docker swarm leave --force 2>/dev/null +docker swarm init ; + +echo "Swarm initialized" + +docker network rm -f dokploy-network 2>/dev/null +docker network create --driver overlay --attachable dokploy-network + +echo "Network created" + +mkdir -p /etc/dokploy + +chmod -R 777 /etc/dokploy + +docker pull dokploy/dokploy:feature + +# Installation +docker service create \ + --name dokploy \ + --replicas 1 \ + --network dokploy-network \ + --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \ + --mount type=bind,source=/etc/dokploy,target=/etc/dokploy \ + --publish published=3000,target=3000,mode=host \ + --update-parallelism 1 \ + --update-order stop-first \ + -e RELEASE_TAG=feature \ + dokploy/dokploy:feature + + +public_ip=$(hostname -I | awk '{print $1}') + +GREEN="\033[0;32m" +YELLOW="\033[1;33m" +BLUE="\033[0;34m" +NC="\033[0m" # No Color + + +echo "" +printf "${GREEN}Congratulations, Dokploy is installed!${NC}\n" +printf "${BLUE}Wait 15 seconds for the server to start${NC}\n" +printf "${YELLOW}Please go to http://${public_ip}:3000${NC}\n\n" +echo ""