Skip to content

Instantly share code, notes, and snippets.

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 rameerez/73ca5b1e53528fae3c2074bd4894556f to your computer and use it in GitHub Desktop.
Save rameerez/73ca5b1e53528fae3c2074bd4894556f to your computer and use it in GitHub Desktop.
Configure an AWS EC2 instance running Ubuntu Server to deploy Rails apps using Kamal (Docker)
#!/bin/bash
/usr/bin/env curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker ${USER}
mkdir -p /letsencrypt &&
touch /letsencrypt/acme.json &&
chmod 600 /letsencrypt/acme.json
docker network create --driver bridge private
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment