dockge_debian.sh
· 1.3 KiB · Bash
Raw
#!/bin/sh
set -e
echo 'Preparing start!'
# prepare packges
echo '--------------------'
echo 'install packages'
echo '--------------------'
apt-get update
apt-get install ufw nano mc htop iftop ca-certificates curl -y
# docker
echo '--------------------'
echo 'install docker'
echo '--------------------'
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF
apt update
apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
# Dockge
echo '--------------------'
echo 'install Dockge'
echo '--------------------'
mkdir -p /opt/stacks /opt/dockge
curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output /opt/dockge/compose.yaml
docker compose -f /opt/dockge/compose.yaml up -d
# info
echo '####################'
echo 'Preparing complete!'
echo '####################'
echo 'Please connect to server on http://ip:5001 to configure Dockge'
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | echo 'Preparing start!' |
| 6 | |
| 7 | # prepare packges |
| 8 | echo '--------------------' |
| 9 | echo 'install packages' |
| 10 | echo '--------------------' |
| 11 | apt-get update |
| 12 | apt-get install ufw nano mc htop iftop ca-certificates curl -y |
| 13 | |
| 14 | # docker |
| 15 | echo '--------------------' |
| 16 | echo 'install docker' |
| 17 | echo '--------------------' |
| 18 | install -m 0755 -d /etc/apt/keyrings |
| 19 | curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc |
| 20 | chmod a+r /etc/apt/keyrings/docker.asc |
| 21 | |
| 22 | # Add the repository to Apt sources: |
| 23 | tee /etc/apt/sources.list.d/docker.sources <<EOF |
| 24 | Types: deb |
| 25 | URIs: https://download.docker.com/linux/debian |
| 26 | Suites: $(. /etc/os-release && echo "$VERSION_CODENAME") |
| 27 | Components: stable |
| 28 | Signed-By: /etc/apt/keyrings/docker.asc |
| 29 | EOF |
| 30 | |
| 31 | apt update |
| 32 | |
| 33 | apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y |
| 34 | |
| 35 | |
| 36 | # Dockge |
| 37 | echo '--------------------' |
| 38 | echo 'install Dockge' |
| 39 | echo '--------------------' |
| 40 | mkdir -p /opt/stacks /opt/dockge |
| 41 | curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output /opt/dockge/compose.yaml |
| 42 | docker compose -f /opt/dockge/compose.yaml up -d |
| 43 | |
| 44 | # info |
| 45 | echo '####################' |
| 46 | echo 'Preparing complete!' |
| 47 | echo '####################' |
| 48 | |
| 49 | echo 'Please connect to server on http://ip:5001 to configure Dockge' |
dockge_ubuntu.sh
· 1.3 KiB · Bash
Raw
#!/bin/sh
set -e
echo 'Preparing start!'
# prepare packges
echo '--------------------'
echo 'install packages'
echo '--------------------'
apt-get update
apt-get install ufw nano mc htop iftop ca-certificates curl -y
# docker
echo '--------------------'
echo 'install docker'
echo '--------------------'
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
# Dockge
echo '--------------------'
echo 'install Dockge'
echo '--------------------'
mkdir -p /opt/stacks /opt/dockge
curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output /opt/dockge/compose.yaml
docker compose -f /opt/dockge/compose.yaml up -d
# info
echo '####################'
echo 'Preparing complete!'
echo '####################'
echo 'Please connect to server on http://ip:5001 to configure Dockge'
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | echo 'Preparing start!' |
| 6 | |
| 7 | # prepare packges |
| 8 | echo '--------------------' |
| 9 | echo 'install packages' |
| 10 | echo '--------------------' |
| 11 | apt-get update |
| 12 | apt-get install ufw nano mc htop iftop ca-certificates curl -y |
| 13 | |
| 14 | # docker |
| 15 | echo '--------------------' |
| 16 | echo 'install docker' |
| 17 | echo '--------------------' |
| 18 | install -m 0755 -d /etc/apt/keyrings |
| 19 | curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc |
| 20 | chmod a+r /etc/apt/keyrings/docker.asc |
| 21 | echo \ |
| 22 | "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ |
| 23 | $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \ |
| 24 | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
| 25 | apt-get update |
| 26 | apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y |
| 27 | |
| 28 | # Dockge |
| 29 | echo '--------------------' |
| 30 | echo 'install Dockge' |
| 31 | echo '--------------------' |
| 32 | mkdir -p /opt/stacks /opt/dockge |
| 33 | curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output /opt/dockge/compose.yaml |
| 34 | docker compose -f /opt/dockge/compose.yaml up -d |
| 35 | |
| 36 | # info |
| 37 | echo '####################' |
| 38 | echo 'Preparing complete!' |
| 39 | echo '####################' |
| 40 | |
| 41 | echo 'Please connect to server on http://ip:5001 to configure Dockge' |
| 42 | |
| 43 |
nginx.sh
· 1.1 KiB · Bash
Raw
#!/bin/sh
set -e
echo 'Preparing start!'
# prepare packges
echo '--------------------'
echo 'install packages'
echo '--------------------'
apt-get update
apt-get install ufw nano mc htop iftop ca-certificates curl -y
# nginx
echo '--------------------'
echo 'install nginx'
echo '--------------------'
#apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -y
#echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
# | sudo tee /etc/apt/sources.list.d/nginx.list
#apt update
apt install nginx -y
systemctl enable --now nginx
# certbot
echo '--------------------'
echo 'install certbot'
echo '--------------------'
apt-get install python3-certbot-nginx -y
# nginxUI
echo '--------------------'
echo 'install nginxUI'
echo '--------------------'
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install
ufw allow 9000
# info
echo '####################'
echo 'Preparing complete!'
echo '####################'
echo 'Please connect to server on http://ip:9000 to configure nginxUI, then close :9000 port using "ufw delete allow 9000"'
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | echo 'Preparing start!' |
| 6 | |
| 7 | # prepare packges |
| 8 | echo '--------------------' |
| 9 | echo 'install packages' |
| 10 | echo '--------------------' |
| 11 | apt-get update |
| 12 | apt-get install ufw nano mc htop iftop ca-certificates curl -y |
| 13 | |
| 14 | |
| 15 | # nginx |
| 16 | echo '--------------------' |
| 17 | echo 'install nginx' |
| 18 | echo '--------------------' |
| 19 | #apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -y |
| 20 | #echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \ |
| 21 | # | sudo tee /etc/apt/sources.list.d/nginx.list |
| 22 | #apt update |
| 23 | apt install nginx -y |
| 24 | systemctl enable --now nginx |
| 25 | |
| 26 | # certbot |
| 27 | echo '--------------------' |
| 28 | echo 'install certbot' |
| 29 | echo '--------------------' |
| 30 | apt-get install python3-certbot-nginx -y |
| 31 | |
| 32 | # nginxUI |
| 33 | echo '--------------------' |
| 34 | echo 'install nginxUI' |
| 35 | echo '--------------------' |
| 36 | bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install |
| 37 | ufw allow 9000 |
| 38 | |
| 39 | # info |
| 40 | echo '####################' |
| 41 | echo 'Preparing complete!' |
| 42 | echo '####################' |
| 43 | |
| 44 | echo 'Please connect to server on http://ip:9000 to configure nginxUI, then close :9000 port using "ufw delete allow 9000"' |
| 45 |
prepare_full.sh
· 2.2 KiB · Bash
Raw
#!/bin/sh
set -e
echo 'Preparing start!'
# prepare packges
echo '--------------------'
echo 'install packages'
echo '--------------------'
apt-get update
apt-get install ufw nano mc htop iftop ca-certificates curl -y
# ufw
echo '--------------------'
echo 'install ufw'
echo '--------------------'
ufw allow 80
ufw allow 443
ufw allow 22
ufw --force enable
ufw default deny incoming
# docker
echo '--------------------'
echo 'install docker'
echo '--------------------'
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
# Dockge
echo '--------------------'
echo 'install Dockge'
echo '--------------------'
mkdir -p /opt/stacks /opt/dockge
curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output /opt/dockge/compose.yaml
docker compose -f /opt/dockge/compose.yaml up -d
# nginx
echo '--------------------'
echo 'install nginx'
echo '--------------------'
#apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -y
#echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
# | sudo tee /etc/apt/sources.list.d/nginx.list
#apt update
apt install nginx -y
systemctl enable --now nginx
# certbot
echo '--------------------'
echo 'install certbot'
echo '--------------------'
apt-get install python3-certbot-nginx -y
# nginxUI
echo '--------------------'
echo 'install nginxUI'
echo '--------------------'
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install
ufw allow 9000
# info
echo '####################'
echo 'Preparing complete!'
echo '####################'
echo 'Please connect to server on http://ip:5001 to configure Dockge'
echo 'Please connect to server on http://ip:9000 to configure nginxUI, then close :9000 port using "ufw delete allow 9000"'
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | echo 'Preparing start!' |
| 6 | |
| 7 | # prepare packges |
| 8 | echo '--------------------' |
| 9 | echo 'install packages' |
| 10 | echo '--------------------' |
| 11 | apt-get update |
| 12 | apt-get install ufw nano mc htop iftop ca-certificates curl -y |
| 13 | |
| 14 | # ufw |
| 15 | echo '--------------------' |
| 16 | echo 'install ufw' |
| 17 | echo '--------------------' |
| 18 | ufw allow 80 |
| 19 | ufw allow 443 |
| 20 | ufw allow 22 |
| 21 | ufw --force enable |
| 22 | ufw default deny incoming |
| 23 | |
| 24 | # docker |
| 25 | echo '--------------------' |
| 26 | echo 'install docker' |
| 27 | echo '--------------------' |
| 28 | install -m 0755 -d /etc/apt/keyrings |
| 29 | curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc |
| 30 | chmod a+r /etc/apt/keyrings/docker.asc |
| 31 | echo \ |
| 32 | "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ |
| 33 | $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \ |
| 34 | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
| 35 | apt-get update |
| 36 | apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y |
| 37 | |
| 38 | # Dockge |
| 39 | echo '--------------------' |
| 40 | echo 'install Dockge' |
| 41 | echo '--------------------' |
| 42 | mkdir -p /opt/stacks /opt/dockge |
| 43 | curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output /opt/dockge/compose.yaml |
| 44 | docker compose -f /opt/dockge/compose.yaml up -d |
| 45 | |
| 46 | # nginx |
| 47 | echo '--------------------' |
| 48 | echo 'install nginx' |
| 49 | echo '--------------------' |
| 50 | #apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -y |
| 51 | #echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \ |
| 52 | # | sudo tee /etc/apt/sources.list.d/nginx.list |
| 53 | #apt update |
| 54 | apt install nginx -y |
| 55 | systemctl enable --now nginx |
| 56 | |
| 57 | # certbot |
| 58 | echo '--------------------' |
| 59 | echo 'install certbot' |
| 60 | echo '--------------------' |
| 61 | apt-get install python3-certbot-nginx -y |
| 62 | |
| 63 | # nginxUI |
| 64 | echo '--------------------' |
| 65 | echo 'install nginxUI' |
| 66 | echo '--------------------' |
| 67 | bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install |
| 68 | ufw allow 9000 |
| 69 | |
| 70 | # info |
| 71 | echo '####################' |
| 72 | echo 'Preparing complete!' |
| 73 | echo '####################' |
| 74 | |
| 75 | echo 'Please connect to server on http://ip:5001 to configure Dockge' |
| 76 | echo 'Please connect to server on http://ip:9000 to configure nginxUI, then close :9000 port using "ufw delete allow 9000"' |
| 77 |