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}