Files
borg/docker-compose.dev.yaml
marcio.fernandes 3180d653d3
All checks were successful
/ build-docker-image (push) Successful in 8s
borg container image feature/review-docker: pipelines and scripts revisions (#1)
Co-authored-by: Márcio Fernandes <marcio.fernandes@outlook.pt>
Reviewed-on: #1
2025-09-21 19:23:37 +00:00

35 lines
711 B
YAML

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}