chore: backup infrastructure configurations [skip ci]
This commit is contained in:
29
nomad_backup/fitbit-garmin-sync.hcl
Normal file
29
nomad_backup/fitbit-garmin-sync.hcl
Normal file
@@ -0,0 +1,29 @@
|
||||
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:latest"
|
||||
volumes = [
|
||||
"/mnt/Public/configs/fitbit-garmin-sync:/app/data"
|
||||
]
|
||||
}
|
||||
|
||||
# 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.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user