fix(restic): Fix docker stack environment variables
This commit is contained in:
parent
0d7e99763f
commit
a4ccdb9884
1 changed files with 6 additions and 7 deletions
|
|
@ -1,15 +1,14 @@
|
||||||
version: '3.4'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
prune:
|
prune:
|
||||||
image: "{{ stack_image }}:{{ restic_version }}"
|
image: "{{ stack_image }}:{{ restic_version }}"
|
||||||
hostname: docker
|
hostname: docker
|
||||||
environment:
|
environment:
|
||||||
- "TZ={{ restic_timezone }}"
|
- "TZ={{ restic_timezone }}"
|
||||||
- SKIP_INIT: "true"
|
- "SKIP_INIT=true"
|
||||||
|
- "RUN_ON_STARTUP=true"
|
||||||
# go-cron starts w seconds
|
# go-cron starts w seconds
|
||||||
- "PRUNE_CRON={{ restic_prune_cron }}"
|
- "PRUNE_CRON={{ restic_prune_cron }}"
|
||||||
- RESTIC_FORGET_ARGS: "{{ restic_forget_args }}"
|
- "RESTIC_FORGET_ARGS={{ restic_forget_args }}"
|
||||||
- "RESTIC_REPOSITORY={{ restic_repo }}"
|
- "RESTIC_REPOSITORY={{ restic_repo }}"
|
||||||
- "AWS_ACCESS_KEY_ID={{ restic_s3_key }}"
|
- "AWS_ACCESS_KEY_ID={{ restic_s3_key }}"
|
||||||
- "AWS_SECRET_ACCESS_KEY={{ restic_s3_secret }}"
|
- "AWS_SECRET_ACCESS_KEY={{ restic_s3_secret }}"
|
||||||
|
|
@ -20,11 +19,11 @@ services:
|
||||||
hostname: docker
|
hostname: docker
|
||||||
environment:
|
environment:
|
||||||
- "TZ={{ restic_timezone }}"
|
- "TZ={{ restic_timezone }}"
|
||||||
- SKIP_INIT: "true"
|
- "SKIP_INIT=true"
|
||||||
- RUN_ON_STARTUP: "false"
|
- "RUN_ON_STARTUP=false"
|
||||||
# go-cron starts w seconds
|
# go-cron starts w seconds
|
||||||
- "CHECK_CRON={{ restic_check_cron }}"
|
- "CHECK_CRON={{ restic_check_cron }}"
|
||||||
- RESTIC_CHECK_ARGS: "{{ restic_check_args }}"
|
- "RESTIC_CHECK_ARGS={{ restic_check_args }}"
|
||||||
- "RESTIC_REPOSITORY={{ restic_repo }}"
|
- "RESTIC_REPOSITORY={{ restic_repo }}"
|
||||||
- "AWS_ACCESS_KEY_ID={{ restic_s3_key }}"
|
- "AWS_ACCESS_KEY_ID={{ restic_s3_key }}"
|
||||||
- "AWS_SECRET_ACCESS_KEY={{ restic_s3_secret }}"
|
- "AWS_SECRET_ACCESS_KEY={{ restic_s3_secret }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue