[nomad-step-1] S1.1 — add nomad/jobs/forgejo.hcl (service job, host_volume, port 3000) #840
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#840
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the Nomad+Vault migration. Step 1 — Forgejo as first Nomad job.
Goal
Add
nomad/jobs/forgejo.hcl— a single-instance service job running the Forgejo container, with a host_volume for persistence and port 3000 exposed. No Vault integration yet (that's Step 2). Proves the Nomad docker driver + host_volume plumbing from Step 0 by running a real service.Scope
Create
nomad/jobs/forgejo.hclwith:job "forgejo"→type = "service",datacenters = ["dc1"], 1 group × 1 task.docker, imagecodeberg.org/forgejo/forgejo:11.0(pinned — matches current docker-compose).network { port "http" { static = 3000, to = 3000 } }.volume_mountreferencing theforgejo-datahost_volume declared innomad/client.hcl(Step 0). Mount target:/data.FORGEJO__database__DB_TYPE=sqlite3FORGEJO__server__ROOT_URL=http://forgejo:3000/FORGEJO__server__HTTP_PORT=3000FORGEJO__security__INSTALL_LOCK=trueFORGEJO__service__DISABLE_REGISTRATION=trueFORGEJO__webhook__ALLOWED_HOST_LIST=privatecheckstanza:type="http" path="/api/v1/version" interval="10s" timeout="3s"withinitial_status="passing"disabled (let Nomad wait for healthy on first boot).restartstanza:attempts=3 interval="5m" delay="15s" mode="delay".resources { cpu = 300, memory = 512 }— conservative baseline, tune later.Acceptance criteria
nomad job validate nomad/jobs/forgejo.hclclean (once Nomad is installed; validates offline HCL parse).curl http://localhost:3000/api/v1/versionreturns 200 from the nomad-box.nomad job stop forgejo && nomad job run forgejo.hcl.docker-compose.yml— the docker stack remains the factory's runtime until cutover.Non-goals
lib/mirrors.sh).Labels / meta
[nomad-step-1] S1.1— no dependencies.