custom seed sync job

This commit is contained in:
vincent 2022-10-23 17:32:01 +02:00
parent 262c97168b
commit 0d25b5d03d

View File

@ -6,9 +6,11 @@ job "seedboxsync" {
meta { meta {
forcedeploy = "0" forcedeploy = "0"
} }
# constraint {
#}
constraint {
attribute = "${attr.cpu.arch}"
value = "amd64"
}
periodic { periodic {
cron = "0,30 * * * *" cron = "0,30 * * * *"
prohibit_overlap = true prohibit_overlap = true
@ -26,7 +28,7 @@ job "seedboxsync" {
name = "lftp" name = "lftp"
} }
config { config {
image = "minidocks/lftp" image = "ducampsv/lftp:latest"
volumes = [ volumes = [
"/mnt/diskstation/media/download:/media" "/mnt/diskstation/media/download:/media"
] ]
@ -37,7 +39,10 @@ job "seedboxsync" {
] ]
} }
env {
USER_ID=1000001
GROUP_ID=1000007
}
template { template {
data= <<EOH data= <<EOH
{{ with secret "secrets/data/seedbox"}} {{ with secret "secrets/data/seedbox"}}
@ -51,7 +56,7 @@ job "seedboxsync" {
env = true env = true
} }
resources { resources {
memory = 50 memory = 100
} }
} }