Upgrading
To a newer version
docker compose pull
docker compose up -dDatabase migrations run automatically on start. Linked numbers stay linked.
When a new stable release is out, admins see Update available in the profile menu (bottom left) of the dashboard, linking to its release notes. The check asks GitHub twice a day; set UPDATE_CHECK=false to turn it off. It only notifies: to update automatically, use a tool like Watchtower.
From v4
v5 is a rewrite with a dashboard, accounts and a database, but the v4 HTTP API keeps working. To upgrade an existing v4 installation:
Add the
./datavolume to your compose file.Keep your v4 credentials for the first start so linked numbers are imported:
yamlvolumes: - ./data:/app/data - ./media:/app/media - ./wa_credentials:/app/wa_credentials # v4 sessions are imported on first startSessions that v4 stored in Redis (
REDIS_URL) can't be imported and have to be linked again.Start the new version and open the dashboard. Create the owner account.
Create API keys in the dashboard and update your apps.
Breaking changes
- The API always requires a key. In v4 an empty
KEYleft the API open. SetKEYor create keys in the dashboard. - Media URLs must be
http(s)URLs.image_url,document_urland friends no longer accept local file paths, which let API callers read files from the server. - Legacy webhook payloads gained
from_alt, and document webhooks now include the file extension inmedia.document.
New webhooks with signatures, retries and more events are configured in the dashboard. See Webhooks.