Switch to docker.
This commit is contained in:
@@ -9,42 +9,19 @@ job "igsync" {
|
||||
}
|
||||
|
||||
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" {
|
||||
driver = "exec"
|
||||
driver = "docker"
|
||||
|
||||
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 {
|
||||
volume = "services"
|
||||
destination = "/data/services"
|
||||
}
|
||||
volume_mount {
|
||||
volume = "nix-store"
|
||||
destination = "/nix/store"
|
||||
}
|
||||
volume_mount {
|
||||
volume = "sw"
|
||||
destination = "/sw"
|
||||
# Force pull to always get latest image
|
||||
force_pull = true
|
||||
}
|
||||
|
||||
resources {
|
||||
|
||||
Reference in New Issue
Block a user