
Kamal 2 Has a Free API — Heres How to Deploy Without Kubernetes
Kamal 2 (from the creators of Rails) deploys your app to bare metal servers with zero downtime. No Kubernetes, no cloud lock-in — just SSH and Docker. Why Kamal 2? No Kubernetes : Deploy to any server with SSH Zero downtime : Rolling deploys with health checks Multi-server : Deploy across multiple hosts Built-in proxy : Kamal Proxy replaces Traefik Secrets management : Env vars from 1Password, Bitwarden, LastPass Accessories : Deploy Redis, PostgreSQL alongside your app Free : Open source from 37signals Install gem install kamal kamal init Configuration # config/deploy.yml service : my-app image : my-app servers : web : hosts : - 192.168.1.1 - 192.168.1.2 labels : traefik.http.routers.my-app.rule : Host(`app.example.com`) worker : hosts : - 192.168.1.3 cmd : bundle exec sidekiq registry : username : my-user password : - KAMAL_REGISTRY_PASSWORD env : clear : RAILS_ENV : production secret : - DATABASE_URL - REDIS_URL - SECRET_KEY_BASE accessories : db : image : postgres:16 host : 192.168
Continue reading on Dev.to DevOps
Opens in a new tab

