Beancount & Fava config.

This commit is contained in:
2023-11-29 06:21:26 +00:00
parent 587b862c6c
commit 05170d6365

44
services/beancount.hcl Normal file
View File

@@ -0,0 +1,44 @@
job "beancount" {
datacenters = ["alo"]
# force each evaluation to be different, so that the jobspec changes, so that the latest image is pulled
# otherwise, nomad run ends up not doing anything even if the latest image is different
meta {
uuid = uuidv4()
}
group "web" {
network {
port "http" {
to = 5000
}
}
task "fava" {
driver = "docker"
config {
image = "gitea.v.paler.net/ppetru/fava:latest"
ports = ["http"]
volumes = [
"/data/compute/appdata/beancount:/beancount",
]
}
env {
BEANCOUNT_FILE = "/beancount/pi.beancount"
}
service {
name = "finances"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.finances.entryPoints=websecure",
"traefik.http.routers.finances.middlewares=authentik@file",
]
}
}
}
}