Last active 1764863694

admin revised this gist 1764863694. Go to revision

1 file changed, 1 insertion, 1 deletion

dockge_debian.sh

@@ -30,7 +30,7 @@ EOF
30 30
31 31 apt update
32 32
33 - apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
33 + apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
34 34
35 35
36 36 # Dockge

admin revised this gist 1764863617. Go to revision

1 file changed, 5 insertions, 5 deletions

dockge_debian.sh

@@ -16,11 +16,11 @@ echo '--------------------'
16 16 echo 'install docker'
17 17 echo '--------------------'
18 18 install -m 0755 -d /etc/apt/keyrings
19 - sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
20 - sudo chmod a+r /etc/apt/keyrings/docker.asc
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 21
22 22 # Add the repository to Apt sources:
23 - sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
23 + tee /etc/apt/sources.list.d/docker.sources <<EOF
24 24 Types: deb
25 25 URIs: https://download.docker.com/linux/debian
26 26 Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
@@ -28,9 +28,9 @@ Components: stable
28 28 Signed-By: /etc/apt/keyrings/docker.asc
29 29 EOF
30 30
31 - sudo apt update
31 + apt update
32 32
33 - sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
33 + apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
34 34
35 35
36 36 # Dockge

admin revised this gist 1764863499. Go to revision

2 files changed, 49 insertions

dockge_debian.sh(file created)

@@ -0,0 +1,49 @@
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 + sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
20 + sudo chmod a+r /etc/apt/keyrings/docker.asc
21 +
22 + # Add the repository to Apt sources:
23 + sudo 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 + sudo apt update
32 +
33 + sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
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.sh renamed to dockge_ubuntu.sh

File renamed without changes

admin revised this gist 1764863370. Go to revision

1 file changed, 41 deletions

dockge_fork.sh (file deleted)

@@ -1,41 +0,0 @@
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/cmcooper1980/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'

admin revised this gist 1763973721. Go to revision

1 file changed, 41 insertions

dockge_fork.sh(file created)

@@ -0,0 +1,41 @@
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/cmcooper1980/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'

admin revised this gist 1761602023. Go to revision

1 file changed, 44 insertions

nginx.sh(file created)

@@ -0,0 +1,44 @@
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"'

admin revised this gist 1761136724. Go to revision

1 file changed, 0 insertions, 0 deletions

prepare.sh renamed to prepare_full.sh

File renamed without changes

admin revised this gist 1761136679. Go to revision

1 file changed, 42 insertions

dockge.sh(file created)

@@ -0,0 +1,42 @@
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 +

admin revised this gist 1757811014. Go to revision

1 file changed, 1 insertion

prepare.sh

@@ -72,4 +72,5 @@ echo '####################'
72 72 echo 'Preparing complete!'
73 73 echo '####################'
74 74
75 + echo 'Please connect to server on http://ip:5001 to configure Dockge'
75 76 echo 'Please connect to server on http://ip:9000 to configure nginxUI, then close :9000 port using "ufw delete allow 9000"'

admin revised this gist 1757810117. Go to revision

1 file changed, 6 insertions, 6 deletions

prepare.sh

@@ -3,10 +3,11 @@
3 3 set -e
4 4
5 5 echo 'Preparing start!'
6 +
7 + # prepare packges
6 8 echo '--------------------'
7 9 echo 'install packages'
8 10 echo '--------------------'
9 - # prepare packages
10 11 apt-get update
11 12 apt-get install ufw nano mc htop iftop ca-certificates curl -y
12 13
@@ -46,11 +47,10 @@ docker compose -f /opt/dockge/compose.yaml up -d
46 47 echo '--------------------'
47 48 echo 'install nginx'
48 49 echo '--------------------'
49 - apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring
50 - echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
51 - http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
52 - | sudo tee /etc/apt/sources.list.d/nginx.list
53 - apt update
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 54 apt install nginx -y
55 55 systemctl enable --now nginx
56 56
Newer Older