Back to articles
Kamal Has a Free API: Deploy Docker Apps Without Kubernetes
How-ToDevOps

Kamal Has a Free API: Deploy Docker Apps Without Kubernetes

via Dev.to DevOpsAlex Spinov

Kubernetes is overkill for 99% of apps. Kamal deploys Docker containers to bare servers with zero-downtime — and it's what 37signals uses for Hey.com and Basecamp. What Is Kamal? Kamal (from the creators of Ruby on Rails) deploys Docker containers to any Linux server. No Kubernetes. No orchestrator. Just Docker + SSH. gem install kamal kamal init Configuration # config/deploy.yml service : my-app image : myregistry/my-app servers : web : - 192.168.1.1 - 192.168.1.2 worker : hosts : - 192.168.1.3 cmd : bundle exec sidekiq proxy : ssl : true host : myapp.com env : clear : RAILS_ENV : production secret : - DATABASE_URL - SECRET_KEY_BASE accessories : db : image : postgres:16 host : 192.168.1.1 port : 5432 env : clear : POSTGRES_DB : myapp_production secret : - POSTGRES_PASSWORD volumes : - /var/lib/postgresql/data:/var/lib/postgresql/data redis : image : redis:7 host : 192.168.1.1 port : 6379 Deploy # First deploy — sets up everything kamal setup # Subsequent deploys kamal deploy # Zero-d

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
8 views

Related Articles