You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
361 B

#!/bin/bash
set -e
SERVER=$1
if [[ -z "${SERVER}" ]]; then echo 'No SERVER'; exit 1; fi
#https://github.com/louislam/dockge?tab=readme-ov-file#basic
ssh root@${SERVER} bash -- << EOF
set -e
mkdir -p /opt/stacks /opt/dockge
cd /opt/dockge
curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output compose.yaml
docker compose up -d
EOF