cluster-state/modules/uptime/jobspec.json

63 lines
No EOL
1.4 KiB
JSON

{
"ID": "uptime",
"Name": "Uptime",
"TaskGroups": [
{
"Name": "Uptime Servers",
"Tasks": [
{
"Name": "kuma",
"Driver": "docker",
"Config": {
"image": "louislam/uptime-kuma:latest",
"ports": [
"web"
],
"mounts": [
{
"type": "volume",
"target": "/app/data",
"source": "kuma-data"
},
{
"type": "bind",
"target": "/var/run/docker.sock",
"source": "/var/run/docker.sock"
}
],
"extra_hosts": [
"host.docker.internal:host-gateway"
]
},
"Resources": {
"CPU": 500,
"MemoryMB": 512
}
}
],
"Services": [
{
"Name": "Kuma",
"Provider": "nomad",
"PortLabel": "web",
"Tags": [
"traefik.enable=true",
"traefik.http.routers.kuma.entrypoints=websecure",
"traefik.http.routers.kuma.rule=Host(`status.brmartin.co.uk`)"
]
}
],
"Networks": [
{
"DynamicPorts": [
{
"Label": "web",
"To": 3001
}
]
}
]
}
]
}