From b5b164b543b1a3533748c7269b98d7678d1077d5 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Wed, 24 Dec 2025 15:08:10 +0000 Subject: [PATCH] Switch to docker. --- services/igsync.hcl | 39 ++++++++------------------------------- 1 file changed, 8 insertions(+), 31 deletions(-) diff --git a/services/igsync.hcl b/services/igsync.hcl index 7a93336..d471cbf 100644 --- a/services/igsync.hcl +++ b/services/igsync.hcl @@ -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 {