Skip to content

Instantly share code, notes, and snippets.

@mhupfauer
Last active March 4, 2022 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhupfauer/16229f9082af0aba5402e9a18babb9b7 to your computer and use it in GitHub Desktop.
Save mhupfauer/16229f9082af0aba5402e9a18babb9b7 to your computer and use it in GitHub Desktop.
Hetzner Cloud-Init for Docker Hosts
#cloud-config
package_upgrade: true
packages:
- git
runcmd:
- curl -fsSL https://get.docker.com | sh
- curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment