Add urbit service.
This commit is contained in:
52
services/urbit.hcl
Normal file
52
services/urbit.hcl
Normal file
@@ -0,0 +1,52 @@
|
||||
# UI code: docdut-sarber-bonmed-monnym
|
||||
# Exec /bin/get-urbit-code and/or /bin/reset-urbit-code in the container to change
|
||||
|
||||
job "urbit" {
|
||||
datacenters = ["alo"]
|
||||
|
||||
group "os" {
|
||||
network {
|
||||
port "http" {
|
||||
to = 80
|
||||
}
|
||||
port "ames" {
|
||||
static = 34343
|
||||
}
|
||||
}
|
||||
|
||||
task "server" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "tloncorp/vere:latest"
|
||||
ports = ["http"]
|
||||
command = "/bin/start-urbit"
|
||||
args = [
|
||||
# You can also set a variable loom size (Urbit memory size) using
|
||||
# --loom=$LOOM_SIZE. Passing /bin/start-urbit --loom=32 for example, would set up
|
||||
# a 4GiB loom (2^32 bytes = 4GiB). The default loom size is 31 (2GiB).
|
||||
"--loom=31",
|
||||
]
|
||||
volumes = [
|
||||
"/data/compute/appdata/urbit:/urbit",
|
||||
]
|
||||
}
|
||||
|
||||
service {
|
||||
name = "urbit"
|
||||
port = "http"
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.urbit.entryPoints=websecure",
|
||||
"traefik.http.routers.urbit.middlewares=authentik@file",
|
||||
]
|
||||
}
|
||||
|
||||
resources {
|
||||
# dependent on --loom setting + some buffer
|
||||
memory = 2100
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user