Files
local.realm.komodo/restore.yaml
T
2026-07-31 14:19:58 +02:00

18 lines
724 B
YAML

services:
cli:
image: ghcr.io/moghtech/komodo-cli
## Optionally specify a specific folder with `--restore-folder`,
## otherwise restores the most recent backup.
command: km database restore -y # --restore-folder 2025-08-14_03-00-01
volumes:
# Same mount to backup files as above
- /opt/komodo/backups:/backups
environment:
## Database port must be reachable.
## Note the different env vars needed compared to backup.
## This is to prevent any accidental restores.
KOMODO_CLI_DATABASE_TARGET_ADDRESS: mongo:27017
KOMODO_CLI_DATABASE_TARGET_USERNAME: admin
KOMODO_CLI_DATABASE_TARGET_PASSWORD: #gentoo#
KOMODO_CLI_DATABASE_TARGET_DB_NAME: komodo