Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions blueprints/waxum/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: "3.8"
services:
waxum:
image: fdciabdul/waxum:0.11.5
restart: unless-stopped
expose:
- 3451
environment:
- SUPERADMIN_TOKEN=${SUPERADMIN_TOKEN}
- WHATSAPP_STORAGE_PATH=/app/whatsapp_sessions

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Persist Waxum's SQLite database in the mounted volume

When this template runs without DATABASE_URL/SQLITE_PATH, Waxum defaults its embedded SQLite database to ./waxum.db under /app, while this compose file only mounts /app/whatsapp_sessions. On a Dokploy redeploy or container recreation, the session files survive but the database-backed state such as sessions metadata, webhooks, message history, scheduled/blast jobs, and console state is lost; set the SQLite path inside the mounted volume or add a volume for the DB as well.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch on the underlying concern, though the premise is slightly off: waxum's SQLite default doesn't resolve to /app/waxum.db — it joins WHATSAPP_STORAGE_PATH (source: src/db/mod.rs), which this template already points at the mounted volume, so it was already persisted. Made it explicit anyway in 88d3fa4 with SQLITE_PATH=/app/whatsapp_sessions/waxum.db so it's no longer implicit/undocumented behavior.

- SQLITE_PATH=/app/whatsapp_sessions/waxum.db
volumes:
- waxum_data:/app/whatsapp_sessions

volumes:
waxum_data:
18 changes: 18 additions & 0 deletions blueprints/waxum/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"id": "waxum",
"name": "Waxum",
"version": "0.11.5",
"description": "Waxum is a WhatsApp REST API gateway written in Rust, shipped as a single native binary. Multi-session, multi-database (SQLite/Postgres/MySQL), 130+ REST endpoints: text/image/video/audio/document/sticker/location/contact/poll messages, reactions, scheduled and bulk (blast) sending, voice/video calls, HMAC-signed webhooks, JWT/Bearer auth, full-text message search, Swagger docs, and Prometheus metrics.",
"logo": "waxum.png",
"links": {
"github": "https://github.com/imtaqin/waxum",
"website": "https://waxum.imtaqin.id",
"docs": "https://waxum.imtaqin.id"
},
"tags": [
"api",
"whatsapp",
"messaging",
"automation"
]
}
12 changes: 12 additions & 0 deletions blueprints/waxum/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[variables]
main_domain = "${domain}"
superadmin_token = "${password:32}"

[config]
[[config.domains]]
serviceName = "waxum"
port = 3451
host = "${main_domain}"

[config.env]
SUPERADMIN_TOKEN = "${superadmin_token}"
Binary file added blueprints/waxum/waxum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading