All checks were successful
/ build-docker-image (push) Successful in 1m2s
42 lines
943 B
YAML
42 lines
943 B
YAML
services:
|
|
borg:
|
|
tty: true
|
|
stdin_open: true
|
|
|
|
build:
|
|
dockerfile: docker/Dockerfile
|
|
context: .
|
|
|
|
environment:
|
|
- BORG_REPO="${BORG_REPO}"
|
|
- BORG_RSH="${BORG_REPO}"
|
|
- BORG_PASSPHRASE="${BORG_PASSPHRASE}"
|
|
- MODE=SCRIPT # Valid modes are: BORG, SCRIPT, SHELL, default is BORG
|
|
command: "${CONTAINER_COMMAND:-list}"
|
|
configs:
|
|
# - source: backup_script
|
|
# target: /app/backup-scripts/run
|
|
- source: id_ed25519
|
|
target: /root/.ssh/id_ed25519
|
|
mode: 0400
|
|
- source: borg_key
|
|
target: /app/borg/key
|
|
mode: 0400
|
|
volumes:
|
|
- ./docker/app/scripts:/app/scripts
|
|
- ./docker/dev-backup-scripts:/app/backup-scripts
|
|
configs:
|
|
|
|
# backup_script:
|
|
# content: |
|
|
# #!bin/bash
|
|
# echo "hello work!!!! (please override me)"
|
|
|
|
|
|
id_ed25519:
|
|
content: |
|
|
${ID_ED25519}
|
|
|
|
borg_key:
|
|
content: |
|
|
${BORG_KEY} |