restic: Fix template env vars
This commit is contained in:
parent
065fd4562b
commit
e13d85990c
1 changed files with 10 additions and 11 deletions
|
|
@ -1,11 +1,10 @@
|
|||
services:
|
||||
prune:
|
||||
image: "mazzolino/restic:{{ restic_version }}"
|
||||
# TODO: get actual hostname/inventoryname? put it into notifications body below too
|
||||
hostname: docker
|
||||
networks:
|
||||
- restic_notify
|
||||
depends_on:
|
||||
- notify_exit
|
||||
environment:
|
||||
TZ: "{{ restic_tz }}"
|
||||
SKIP_INIT: "{{ not restic_auto_init }}"
|
||||
|
|
@ -39,15 +38,15 @@ services:
|
|||
networks:
|
||||
- restic_notify
|
||||
environment:
|
||||
- "TZ={{ restic_tz }}"
|
||||
- "SKIP_INIT=true" # only run init on one container to avoid race cond
|
||||
- "RUN_ON_STARTUP=false"
|
||||
- "CHECK_CRON={{ restic_check_cron }}"
|
||||
- "RESTIC_CHECK_ARGS={{ restic_check_args }}"
|
||||
- "RESTIC_REPOSITORY={{ restic_repo }}"
|
||||
- "RESTIC_PASSWORD={{ restic_pass }}"
|
||||
- "AWS_ACCESS_KEY_ID={{ restic_s3_key }}"
|
||||
- "AWS_SECRET_ACCESS_KEY={{ restic_s3_secret }}"
|
||||
TZ: "{{ restic_tz }}"
|
||||
SKIP_INIT: true
|
||||
RUN_ON_STARTUP: true
|
||||
CHECK_CRON: "{{ restic_check_cron }}"
|
||||
RESTIC_CHECK_ARGS: "{{ restic_check_args }}"
|
||||
RESTIC_REPOSITORY: "{{ restic_repo }}"
|
||||
RESTIC_PASSWORD: "{{ restic_pass }}"
|
||||
AWS_ACCESS_KEY_ID: "{{ restic_s3_key }}"
|
||||
AWS_SECRET_ACCESS_KEY: "{{ restic_s3_secret }}"
|
||||
{% if restic_notify_success != None %}
|
||||
POST_COMMANDS_SUCCESS: |-
|
||||
curl -X POST --data "{\"title\": \"Restic Check successful\", \"body\": \" \"}" http://notify_success:5000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue