restic-setup-server/templates/docker-compose.yml
2026-01-21 11:37:40 -08:00

41 lines
1.1 KiB
YAML

# Restic REST Server - Backup Infrastructure
# Deploys to: 'devops' role (see infrastructure/hosts/roles.yaml)
# Docs: https://github.com/restic/rest-server
#
# Deployment:
# Part of setup-devops-host.sh
#
# Manual usage:
# scp -r infrastructure/docker/restic $TARGET:/bigdisk/restic/
# ssh $TARGET "cd /bigdisk/restic && docker-compose up -d"
#
# Access (VPN-only):
# http://10.0.0.11:8000 (restic REST API)
#
# Features:
# - Restic REST server for workstation backups
# - Per-host repositories
# - Repository-level password protection (no HTTP auth)
#
# Workstation backup targets:
# - ~/Code (every 5 minutes)
# - ~/.* dotfiles (every 12 hours)
#
# Retention policy: 7 daily, 4 weekly, 3 monthly backups
services:
restic-server:
image: restic/rest-server:latest
container_name: restic-rest-server
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- /bigdisk/restic-backups:/data
networks:
- restic
command: ["rest-server", "--path", "/data", "--listen", ":8000", "--no-auth"]
networks:
restic:
driver: bridge