Databases
Create Postgres, MySQL, MariaDB, MongoDB, Redis or libSQL services and manage env, backups, resources and persistence.
Create a database service from a project and manage it from one set of tabs.
Supported engines
| Engine | Backups tab |
|---|---|
| Postgres | Yes |
| MySQL | Yes |
| MariaDB | Yes |
| MongoDB | Yes |
libSQL (sqld, network-accessible SQLite fork) | Yes |
| Redis | No |
Tabs
| Tab | What it does |
|---|---|
| Overview | The Actions card (deploy, reload, start, stop, terminal) and connection details. |
| Backups | Scheduled backups to S3-compatible storage. See Backups. Redis has no Backups tab. |
| Logs | Container output. |
| Metrics | CPU, memory, disk and network graphs. They update only while the page is open. |
| Settings | Environment variables and Resources and storage. |
The Environment variables section edits the environment. Wrap a multiline value in double quotes, for example '"my_private_key"'.
Resources and storage
| Option | What it does |
|---|---|
| Advanced settings | Override the container command. |
| Volumes | Persist data across deployments. |
| Resources | Set CPU and memory limits. |
| Danger zone | Rebuild the database and start over. |
Enable Redis AOF persistence
Redis runs with default persistence (RDB snapshots, no append-only file). To enable the AOF, set the start command in Settings › Resources and storage, in the Advanced settings card:
- Command:
/bin/sh - Args, one entry each:
-c, thenredis-server --requirepass "$REDIS_PASSWORD" --appendonly yes --save 3600 1
wtree Cloud sets REDIS_PASSWORD, so the command doesn't contain the password. Save, click Deploy on Overview, then check:
redis-cli -a "$REDIS_PASSWORD" config get appendonly
# 1) "appendonly"
# 2) "yes"Browse container files
Open Servers, choose the server and open Containers. Use the container's actions menu and pick Browse files. You can preview and edit text files, download or delete files, and use Upload file. Named volumes are browsable from Containers › Volumes. Files outside persistent volumes disappear on restart or redeploy. This needs access to the Docker section.
Keyboard shortcuts
Press g, then a key, to switch tab or Settings section.
| Key | Goes to |
|---|---|
g | Overview |
b | Backups |
l | Logs |
m | Metrics |
s | Settings |
e | Settings › Environment variables |
a | Settings › Resources and storage |
