Move backup volume to /var/backups/outline so DokPloy redeploys don't wipe it

The 4 AM export push triggers a DokPloy redeploy which rm-rf's the code
directory — including ./backups/. Using an absolute path outside the code
dir keeps backups safe across redeploys.
This commit is contained in:
Jennie Robinson Faber 2026-04-09 09:21:50 +01:00
parent ebe29fa137
commit 3c9b9d3188
3 changed files with 2 additions and 19 deletions

View file

@ -1,9 +0,0 @@
.env*
*.pem
*.key
*.p12
*.pfx
*.crt
*.cert
credentials.*
secrets.*

View file

@ -1,9 +0,0 @@
.env*
*.pem
*.key
*.p12
*.pfx
*.crt
*.cert
credentials.*
secrets.*

View file

@ -86,7 +86,8 @@ services:
# Absolute path required: DokPloy does NOT expand ~ and would otherwise # Absolute path required: DokPloy does NOT expand ~ and would otherwise
# create a literal "~" directory under the deployment dir. # create a literal "~" directory under the deployment dir.
- /root/.ssh:/root/.ssh:ro - /root/.ssh:/root/.ssh:ro
- ./backups:/backups/outline # Absolute path so DokPloy's rm-rf of the code dir doesn't wipe backups.
- /var/backups/outline:/backups/outline
env_file: env_file:
- .env - .env