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:
parent
ebe29fa137
commit
3c9b9d3188
3 changed files with 2 additions and 19 deletions
|
|
@ -1,9 +0,0 @@
|
|||
.env*
|
||||
*.pem
|
||||
*.key
|
||||
*.p12
|
||||
*.pfx
|
||||
*.crt
|
||||
*.cert
|
||||
credentials.*
|
||||
secrets.*
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
.env*
|
||||
*.pem
|
||||
*.key
|
||||
*.p12
|
||||
*.pfx
|
||||
*.crt
|
||||
*.cert
|
||||
credentials.*
|
||||
secrets.*
|
||||
|
|
@ -86,7 +86,8 @@ services:
|
|||
# Absolute path required: DokPloy does NOT expand ~ and would otherwise
|
||||
# create a literal "~" directory under the deployment dir.
|
||||
- /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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue