Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MagicRB
Created January 13, 2021 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MagicRB/ccaffcda6492b2c8af60668e81d147db to your computer and use it in GitHub Desktop.
Save MagicRB/ccaffcda6492b2c8af60668e81d147db to your computer and use it in GitHub Desktop.
{
"ExposedPorts":{
"3000/tcp":{
},
"3000/udp":{
}
},
"Env":[
"NOMAD_ADDR_http=IP:8666",
"NOMAD_ALLOC_DIR=/alloc",
"NOMAD_ALLOC_ID=01e2e644-6431-2fb4-79fc-dc8090a7e391",
"NOMAD_ALLOC_INDEX=0",
"NOMAD_ALLOC_NAME=gitea.gitea[0]",
"NOMAD_ALLOC_PORT_http=3000",
"NOMAD_CPU_LIMIT=100",
"NOMAD_DC=homelab-1",
"NOMAD_GROUP_NAME=gitea",
"NOMAD_HOST_ADDR_http=IP:8666",
"NOMAD_HOST_IP_http=IP",
"NOMAD_HOST_PORT_http=8666",
"NOMAD_IP_http=IP",
"NOMAD_JOB_ID=gitea",
"NOMAD_JOB_NAME=gitea",
"NOMAD_MEMORY_LIMIT=300",
"NOMAD_NAMESPACE=default",
"NOMAD_PORT_http=3000",
"NOMAD_REGION=global",
"NOMAD_SECRETS_DIR=/secrets",
"NOMAD_TASK_DIR=/local",
"NOMAD_TASK_NAME=gitea"
],
"Cmd":null,
"Image":"gitea:local",
"Entrypoint":null,
"Labels":{
"com.hashicorp.nomad.alloc_id":"01e2e644-6431-2fb4-79fc-dc8090a7e391"
},
"HostConfig":{
"Binds":[
"/var/lib/nomad/alloc/01e2e644-6431-2fb4-79fc-dc8090a7e391/alloc:/alloc",
"/var/lib/nomad/alloc/01e2e644-6431-2fb4-79fc-dc8090a7e391/gitea/local:/local",
"/var/lib/nomad/alloc/01e2e644-6431-2fb4-79fc-dc8090a7e391/gitea/secrets:/secrets"
],
"PortBindings":{
"3000/tcp":[
{
"HostIp":"IP",
"HostPort":"8666"
}
],
"3000/udp":[
{
"HostIp":"IP",
"HostPort":"8666"
}
]
},
"NetworkMode":"default",
"ConsoleSize":[
0,
0
],
"RestartPolicy":{
},
"LogConfig":{
"Type":"json-file",
"Config":{
"max-file":"2",
"max-size":"2m"
}
},
"Memory":314572800,
"MemorySwap":314572800,
"CpuShares":100,
"MemorySwappiness":0,
"PidsLimit":0,
"Mounts":[
{
"Target":"/data/gitea",
"Source":"/var/lib/nomad/client/csi/node/nfs/per-alloc/01e2e644-6431-2fb4-79fc-dc8090a7e391/gitea/rw-block-device-single-node-writer",
"Type":"bind",
"BindOptions":{
"Propagation":"rprivate"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment