Deploying Go + SQLite Web Apps with Kamal 2
Kamal (formerly MRSK) brings zero-downtime deployment for Docker containers to any bare metal or cloud VM without Kubernetes complexity.
Sample config/deploy.yml for Go + SQLite
service: notesondev
image: mydockerhub/notesondev
servers:
web:
- 192.168.1.100
registry:
username: mydockerhub
password:
- KAMAL_REGISTRY_PASSWORD
volumes:
- "notesondev_data:/app/data"
env:
clear:
PORT: "8080"
DATABASE_URL: "/app/data/notesondev.db"
Deploying in One Command
kamal setup
kamal deploy
Kamal automatically builds your Docker image, pushes it to your registry, pulls it on your server, starts health checks, updates Traefik routing, and tears down the old container cleanly.
Discussion & Comments (0)
No comments yet. Be the first to share your thoughts!