2021-07-09 09:21:42 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2022-06-17 11:06:15 +02:00
|
|
|
ssh:
|
|
|
|
image: linuxserver/openssh-server:version-8.6_p1-r3
|
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- USER_NAME=test
|
|
|
|
volumes:
|
2023-09-02 15:17:46 +02:00
|
|
|
- ${KEY_DIR:-.}/id_rsa.pub:/config/.ssh/authorized_keys
|
2022-06-17 11:06:15 +02:00
|
|
|
- ssh_backup_data:/tmp
|
|
|
|
|
2022-03-04 13:51:26 +01:00
|
|
|
backup:
|
2022-02-22 07:53:33 +01:00
|
|
|
image: offen/docker-volume-backup:${TEST_VERSION:-canary}
|
2021-12-22 14:39:46 +01:00
|
|
|
hostname: hostnametoken
|
2021-07-09 09:21:42 +02:00
|
|
|
depends_on:
|
2022-06-17 11:06:15 +02:00
|
|
|
- ssh
|
2021-07-09 09:21:42 +02:00
|
|
|
restart: always
|
|
|
|
environment:
|
2021-12-22 14:39:46 +01:00
|
|
|
BACKUP_FILENAME_EXPAND: 'true'
|
|
|
|
BACKUP_FILENAME: test-$$HOSTNAME.tar.gz
|
2021-07-09 09:50:59 +02:00
|
|
|
BACKUP_CRON_EXPRESSION: 0 0 5 31 2 ?
|
2021-08-20 08:56:04 +02:00
|
|
|
BACKUP_RETENTION_DAYS: ${BACKUP_RETENTION_DAYS:-7}
|
|
|
|
BACKUP_PRUNING_LEEWAY: 5s
|
2021-08-23 09:10:49 +02:00
|
|
|
BACKUP_PRUNING_PREFIX: test
|
2022-06-17 11:06:15 +02:00
|
|
|
SSH_HOST_NAME: ssh
|
|
|
|
SSH_PORT: 2222
|
|
|
|
SSH_USER: test
|
|
|
|
SSH_REMOTE_PATH: /tmp
|
|
|
|
SSH_IDENTITY_PASSPHRASE: test1234
|
2021-07-09 09:21:42 +02:00
|
|
|
volumes:
|
2023-09-02 15:17:46 +02:00
|
|
|
- ${KEY_DIR:-.}/id_rsa:/root/.ssh/id_rsa
|
2021-07-09 09:21:42 +02:00
|
|
|
- app_data:/backup/app_data:ro
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
|
|
|
offen:
|
|
|
|
image: offen/offen:latest
|
|
|
|
labels:
|
|
|
|
- docker-volume-backup.stop-during-backup=true
|
|
|
|
volumes:
|
|
|
|
- app_data:/var/opt/offen
|
|
|
|
|
|
|
|
volumes:
|
2022-06-17 11:06:15 +02:00
|
|
|
ssh_backup_data:
|
2022-06-23 14:40:29 +02:00
|
|
|
name: ssh_backup_data
|
2021-07-09 09:21:42 +02:00
|
|
|
app_data:
|