initial commit
This commit is contained in:
36
backup/restore.yml
Normal file
36
backup/restore.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
# One-shot helper service for restores. Run with your main compose file so
|
||||
# volumes and networks resolve to the same project.
|
||||
services:
|
||||
restore:
|
||||
image: postgres:18-alpine
|
||||
container_name: restore
|
||||
restart: "no"
|
||||
environment:
|
||||
IN_CONTAINER: "1"
|
||||
POSTGRES_HOST: postgres
|
||||
volumes:
|
||||
- ./backups:/backups:ro
|
||||
- type: volume
|
||||
source: odoo-db-data
|
||||
target: /odoo_db_data
|
||||
- type: volume
|
||||
source: odoo-config
|
||||
target: /odoo_config
|
||||
- type: volume
|
||||
source: gitea_data
|
||||
target: /gitea_data
|
||||
- type: volume
|
||||
source: opencloud-data
|
||||
target: /opencloud_data
|
||||
- type: volume
|
||||
source: opencloud-config
|
||||
target: /opencloud_config
|
||||
- ./scripts/backup/restore.sh:/restore.sh:ro
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
apk add --no-cache libarchive-tools attr >/dev/null
|
||||
exec /restore.sh "$@"
|
||||
- --
|
||||
Reference in New Issue
Block a user