Files
fitbit_garmin_sync/fitbit-garmin-sync.nomad
sstent 6ce170e84a
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 40s
sync
2025-12-15 07:38:18 -08:00

38 lines
893 B
HCL

variable "container_version" {
default = "latest"
}
job "fitbit-garmin-sync" {
datacenters = ["dc1"]
type = "service"
group "sync" {
count = 1
task "fitbit-garmin-sync" {
driver = "docker"
config {
image = "gitea.service.dc1.fbleagh.duckdns.org/sstent/fitbit_garmin_sync:${var.container_version}"
volumes = [
"/mnt/Public/configs/fitbit-garmin-sync:/app/data"
]
memory_hard_limit = 2048
}
env {
CONFIG_SOURCE = "consul"
}
# Sensible resource allocation for a lightweight Python script.
resources {
cpu = 100 # MHz
memory = 128 # MB
}
# The service does not expose any ports.
# The application is a scheduled job, not a long-running service.
# The command to run is defined in the Dockerfile ENTRYPOINT and CMD.
}
}
}