2017-11-16 17:23:03 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
2018-07-24 15:38:22 +00:00
|
|
|
restic:
|
2017-11-16 17:23:03 +00:00
|
|
|
build:
|
2018-05-13 17:31:31 +00:00
|
|
|
context: ..
|
2017-11-16 17:23:03 +00:00
|
|
|
dockerfile: Dockerfile.${DOCKER_BASE}
|
|
|
|
entrypoint: "bash"
|
2018-07-24 15:38:22 +00:00
|
|
|
command: "-c 'sleep 2 && /test.sh'"
|
2017-11-16 17:23:03 +00:00
|
|
|
hostname: itest
|
|
|
|
environment:
|
2018-05-13 17:31:31 +00:00
|
|
|
IN_CONTAINER: 'true'
|
2017-11-16 17:23:03 +00:00
|
|
|
SKIP_ON_START: 'true'
|
2018-07-24 15:38:22 +00:00
|
|
|
RESTIC_PASSWORD: Correct.Horse.Battery.Staple
|
|
|
|
BACKUP_DEST: s3:http://minio:9000/restic
|
2017-11-16 17:23:03 +00:00
|
|
|
AWS_DEFAULT_REGION: us-east-1
|
|
|
|
AWS_ACCESS_KEY_ID: SUPER_SECRET_ACCESS_KEY
|
|
|
|
AWS_SECRET_ACCESS_KEY: SUPER_SECRET_SECRET_KEY
|
|
|
|
volumes:
|
2018-05-13 17:31:31 +00:00
|
|
|
- "./test.sh:/test.sh"
|
2017-11-16 17:23:03 +00:00
|
|
|
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
|