restic-compose-backup/docker-compose.yaml

19 lines
395 B
YAML

version: '3'
services:
backup:
build: .
env_file:
- restic_volume_backup.env
volumes:
# Map in docker socket
- /var/run/docker.sock:/tmp/docker.sock:ro
# Map in project source
- .:/restic-volume-backup
web:
image: nginx
labels:
restic-volume-backup.include: "/tests"
volumes:
- ./tests:/srv/tests
- ./.vscode:/srv/code