Hosting platforms
Fly.io
Fly.io is the fastest way to deploy a container. It can even scales to 0 and be automatically restarted when new requests arrive, brining hosting cost down.
- Install flyctl, their CLI utility:
curl -L https://fly.io/install.sh | sh
- Create an account with
fly auth signup
or log in withfly auth login
. - Run
fly launch
- Run
fly deploy
to redeploy your app
VPS or bare metal
Kamal and Uncloud are 2 great options to deploy your app on a VPS.
Example using Uncloud:
- Install:
curl -fsS https://get.uncloud.run/install.sh | sh
- Initialize a machine:
uc machine init root@your-server-ip
- Build your image:
docker build . -t my-app-image
- Deploy your app:
uc run -p yourdomain.com:80/https my-app-image