Files
borg/docker-compose.dev.yaml
Márcio Fernandes 94b800d819
All checks were successful
/ build-docker-image (push) Successful in 51s
.
2025-09-21 16:15:15 +01:00

42 lines
923 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=SHELL # Valid modes are: BORG, SCRIPT, SHELL, default is BORG
command: "ls -lah"
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}