Created
September 15, 2023 20:24
-
-
Save acuteaura/61f221ada67f49193bc1f939555353bc to your computer and use it in GitHub Desktop.
partial compose.yaml backup strategy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
backup: | |
build: | |
context: . | |
dockerfile: Containerfile.restic | |
command: "restic backup /data" | |
deploy: | |
replicas: 0 | |
environment: | |
RESTIC_PASSWORD: snip | |
RESTIC_REPOSITORY: sftp://backup/ | |
volumes: | |
- ./config/restic/ssh_config:/root/.ssh/config:ro | |
- ./config/restic/id_restic:/root/.ssh/id_ed25519:ro | |
- ./config/restic/ssh_known_hosts:/root/.ssh/known_hosts | |
- pg:/data/pg | |
- caddy-data:/data/caddy-data | |
- caddy-config:/data/caddy-config | |
- synapse:/data/synapse | |
- mautrix-telegram:/data/mautrix-telegram | |
- mautrix-discord:/data/mautrix-discord | |
- mautrix-signal:/data/mautrix-signal | |
- signald:/data/signald | |
- prometheus:/data/prometheus | |
- grafana:/data/grafana | |
- .:/data/self:ro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax=docker/dockerfile:1 | |
FROM alpine:3.18 | |
RUN apk add restic openssh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment