37 lines
957 B
YAML
37 lines
957 B
YAML
---
|
|
# 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 "$@"
|
|
- --
|