30 lines
1 KiB
Django/Jinja
30 lines
1 KiB
Django/Jinja
services:
|
|
prune:
|
|
image: "{{ stack_image }}:{{ restic_version }}"
|
|
hostname: docker
|
|
environment:
|
|
- "TZ={{ restic_timezone }}"
|
|
- "SKIP_INIT=true"
|
|
- "RUN_ON_STARTUP=true"
|
|
# go-cron starts w seconds
|
|
- "PRUNE_CRON={{ restic_prune_cron }}"
|
|
- "RESTIC_FORGET_ARGS={{ restic_forget_args }}"
|
|
- "RESTIC_REPOSITORY={{ restic_repo }}"
|
|
- "AWS_ACCESS_KEY_ID={{ restic_s3_key }}"
|
|
- "AWS_SECRET_ACCESS_KEY={{ restic_s3_secret }}"
|
|
- "RESTIC_PASSWORD={{ restic_pass }}"
|
|
|
|
check:
|
|
image: "{{ stack_image }}:{{ restic_version }}"
|
|
hostname: docker
|
|
environment:
|
|
- "TZ={{ restic_timezone }}"
|
|
- "SKIP_INIT=true"
|
|
- "RUN_ON_STARTUP=false"
|
|
# go-cron starts w seconds
|
|
- "CHECK_CRON={{ restic_check_cron }}"
|
|
- "RESTIC_CHECK_ARGS={{ restic_check_args }}"
|
|
- "RESTIC_REPOSITORY={{ restic_repo }}"
|
|
- "AWS_ACCESS_KEY_ID={{ restic_s3_key }}"
|
|
- "AWS_SECRET_ACCESS_KEY={{ restic_s3_secret }}"
|
|
- "RESTIC_PASSWORD={{ restic_pass }}"
|