job "nomad-mcp" { datacenters = ["dc1"] type = "service" namespace = "development" group "app" { count = 1 network { port "http" { to = 8000 } } task "nomad-mcp" { driver = "docker" config { image = "python:3.11-slim" ports = ["http"] command = "python" args = ["-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] mount { type = "bind" source = "local/nomad_mcp" target = "/app" readonly = false } } artifact { source = "git::https://gitea.dev.meisheng.group/nkohl/nomad_mcp.git" destination = "local/nomad_mcp" } env { NOMAD_ADDR = "http://pjmldk01.ds.meisheng.group:4646" NOMAD_NAMESPACE = "development" LOG_LEVEL = "DEBUG" PYTHONPATH = "/app" STATIC_DIR = "/local/nomad_mcp/static" } # Add a template to create the static directory if it doesn't exist template { data = <