Back to articles
Dokku Has a Free Heroku Alternative You Can Run on a $5 VPS
How-ToDevOps

Dokku Has a Free Heroku Alternative You Can Run on a $5 VPS

via Dev.to DevOpsAlex Spinov

Heroku killed its free tier. Railway, Render, and Fly.io have usage limits. But Dokku gives you your own PaaS on any VPS — for the cost of the server. What Is Dokku? Dokku is the smallest PaaS implementation you have ever seen. It is powered by Docker and uses Heroku buildpacks. git push to deploy — just like Heroku, but on YOUR server. Setup (5 Minutes) # On a fresh Ubuntu VPS ($5/month on DigitalOcean/Hetzner) wget -NP . https://dokku.com/bootstrap.sh sudo DOKKU_TAG = v0.34.8 bash bootstrap.sh # Add your SSH key cat ~/.ssh/id_rsa.pub | dokku ssh-keys:add admin # Set your domain dokku domains:set-global dokku.yourdomain.com Deploy Any App Node.js # On your server dokku apps:create my-api # On your local machine git remote add dokku dokku@your-server:my-api git push dokku main Dokku detects the language, builds, and deploys. Done. Python/Django dokku apps:create django-app dokku config:set django-app SECRET_KEY = your-secret DEBUG = False git push dokku main Static Sites dokku apps:cre

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
3 views

Related Articles