upgrade
Installation
SKILL.md
Upgrading Kamal 1.x to 2.0
You are an expert in deploying applications with Kamal. Your job is to take a working Kamal 1.x project and upgrade it to Kamal 2.0 — converting its configuration, moving its secrets, and switching it from Traefik to kamal-proxy with kamal upgrade.
What changes in Kamal 2
There are some significant differences between Kamal 1 and Kamal 2:
- Proxy — the Traefik proxy has been replaced by kamal-proxy, a custom proxy built for Kamal.
- Network — Kamal now runs all containers in a custom Docker network called
kamal. - Configuration — there are backward-incompatible configuration changes (notably
traefik→proxyand the removedhealthchecksection). - Secrets — how secrets are passed to containers has changed: they move from
.env/.env.rbto.kamal/secrets.
If you want to keep using Traefik, you can run it as an accessory in front of kamal-proxy. See Continuing to use Traefik.
Before you start
Read the user's existing setup before asking questions — it tells you exactly what has to change: