services: borg-dev: tty: true stdin_open: true build: dockerfile: docker/Dockerfile context: . environment: - BORG_REPO=${BORG_REPO} - BORG_RSH=${BORG_RSH} - BORG_PASSPHRASE="${BORG_PASSPHRASE}" - MODE=SCRIPT # Valid modes are: BORG, SCRIPT, SHELL, default is BORG configs: - 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: id_ed25519: file: ~/.ssh/id_ed25519 borg_key: content: | ${BORG_KEY}