From d828b29da3603fdf4fdf7e79c81d11c72542959c Mon Sep 17 00:00:00 2001 From: anilonayy Date: Mon, 12 Oct 2026 02:04:20 +0300 Subject: [PATCH] docs(databases): document enabling Redis AOF persistence --- apps/docs/content/docs/core/databases/index.mdx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apps/docs/content/docs/core/databases/index.mdx b/apps/docs/content/docs/core/databases/index.mdx index 41a77fba..23a0f8ce 100644 --- a/apps/docs/content/docs/core/databases/index.mdx +++ b/apps/docs/content/docs/core/databases/index.mdx @@ -51,6 +51,23 @@ This section provides advanced configuration options for experienced users. It i - **Resources**: Adjust the CPU and memory allocation for your application. - **Danger Zone**: If for some reason you want to start again and delete all the data, tables, etc. you can do it here. +### Enabling Redis Persistence (AOF) + +A Redis database runs with Redis' default persistence (RDB snapshots, no append-only file). To enable the AOF, override the start command from the **Run Command** field in the **Advanced** tab. + +- **Command**: `/bin/sh` +- **Args** (one entry each): `-c`, then `redis-server --requirepass "$REDIS_PASSWORD" --appendonly yes --save 3600 1` + +The `REDIS_PASSWORD` environment variable is set by Dokploy, so the command can reference it instead of containing the password. + +Click **Deploy** after saving to apply the new command. To confirm: + +```bash +redis-cli -a "$REDIS_PASSWORD" config get appendonly +# 1) "appendonly" +# 2) "yes" +``` + ## Keyboard Shortcuts To help speed up navigating there are some built in keyboard shortcuts for