Switch to docker.
This commit is contained in:
@@ -9,42 +9,19 @@ job "igsync" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group "cron" {
|
group "cron" {
|
||||||
volume "nix-store" {
|
|
||||||
type = "host"
|
|
||||||
read_only = true
|
|
||||||
source = "nix-store"
|
|
||||||
}
|
|
||||||
volume "sw" {
|
|
||||||
type = "host"
|
|
||||||
read_only = true
|
|
||||||
source = "sw"
|
|
||||||
}
|
|
||||||
volume "services" {
|
|
||||||
type = "host"
|
|
||||||
read_only = false
|
|
||||||
source = "services"
|
|
||||||
}
|
|
||||||
|
|
||||||
task "sync" {
|
task "sync" {
|
||||||
driver = "exec"
|
driver = "docker"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
command = "/data/services/igsync/run.sh"
|
image = "gitea.v.paler.net/ppetru/igsync:latest"
|
||||||
}
|
|
||||||
|
|
||||||
user = "ppetru"
|
# Mount the data directory for .env, database, and media files
|
||||||
|
volumes = [
|
||||||
|
"/data/services/igsync:/data/services/igsync"
|
||||||
|
]
|
||||||
|
|
||||||
volume_mount {
|
# Force pull to always get latest image
|
||||||
volume = "services"
|
force_pull = true
|
||||||
destination = "/data/services"
|
|
||||||
}
|
|
||||||
volume_mount {
|
|
||||||
volume = "nix-store"
|
|
||||||
destination = "/nix/store"
|
|
||||||
}
|
|
||||||
volume_mount {
|
|
||||||
volume = "sw"
|
|
||||||
destination = "/sw"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
|
|||||||
Reference in New Issue
Block a user