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.

13 lines
361 B

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