docker-restic-cron/tests/docker-compose-test-s3.yml

34 lines
807 B
YAML
Raw Normal View History

2021-06-15 17:52:16 +00:00
---
version: '2'
services:
restic:
build:
2018-05-13 17:31:31 +00:00
context: ..
dockerfile: Dockerfile
2021-06-15 17:52:16 +00:00
args:
- TARGETARCH
entrypoint: "bash"
command: "-c 'sleep 2 && /test.sh'"
hostname: itest
environment:
2018-05-13 17:31:31 +00:00
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:
2018-05-13 17:31:31 +00:00
- "./test.sh:/test.sh"
links:
- minio
minio:
image: minio/minio
command: server /data
hostname: minio
expose:
- "9000"
environment:
2021-06-15 00:01:52 +00:00
MINIO_ROOT_USER: SUPER_SECRET_ACCESS_KEY
MINIO_ROOT_PASSWORD: SUPER_SECRET_SECRET_KEY