mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-11-21 20:56:36 +00:00
7e57f2ed0b
Switch to restic
31 lines
768 B
YAML
31 lines
768 B
YAML
version: '2'
|
|
services:
|
|
restic:
|
|
build:
|
|
context: ..
|
|
dockerfile: Dockerfile
|
|
entrypoint: "bash"
|
|
command: "-c 'sleep 2 && /test.sh'"
|
|
hostname: itest
|
|
environment:
|
|
IN_CONTAINER: 'true'
|
|
SKIP_ON_START: 'true'
|
|
RESTIC_PASSWORD: Correct.Horse.Battery.Staple
|
|
BACKUP_DEST: s3:http://minio:9000/restic
|
|
AWS_DEFAULT_REGION: us-east-1
|
|
AWS_ACCESS_KEY_ID: SUPER_SECRET_ACCESS_KEY
|
|
AWS_SECRET_ACCESS_KEY: SUPER_SECRET_SECRET_KEY
|
|
volumes:
|
|
- "./test.sh:/test.sh"
|
|
links:
|
|
- minio
|
|
minio:
|
|
image: minio/minio
|
|
command: server /data
|
|
hostname: minio
|
|
expose:
|
|
- "9000"
|
|
environment:
|
|
MINIO_ACCESS_KEY: SUPER_SECRET_ACCESS_KEY
|
|
MINIO_SECRET_KEY: SUPER_SECRET_SECRET_KEY
|