Skip to content

Instantly share code, notes, and snippets.

@heffo42
Created July 7, 2019 17:35
Show Gist options
  • Save heffo42/8419978abe92c716b38175864dd2c9a0 to your computer and use it in GitHub Desktop.
Save heffo42/8419978abe92c716b38175864dd2c9a0 to your computer and use it in GitHub Desktop.
#cloud-config
runcmd:
- ufw allow 22/tcp
- ufw allow 2376/tcp
- ufw allow 2377/tcp
- ufw allow 7946/tcp
- ufw allow 7946/udp
- ufw allow 4789/udp
- ufw reload
- systemctl restart docker
- docker swarm join --token <token> <manager ip>:2377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment