Skip to main content
A User Service is an automatically managed process on Zo Computer that has a public endpoint. These services will be restarted if they crash, and they will persist across restarts of Zo Computer. They are intended for long-running services that you want to expose via a public URL or TCP address (web/API servers, databases, SSH server, etc). Services should bind to the PORT environment variable.

Parameters

service_id
string
required
Identifier of the service to update.
label
string
New unique label (per host), if changing.
local_port
number
New localhost port to expose, if changing (injected as the PORT env var).
entrypoint
string
New entrypoint, if changing.
workdir
string
New working directory, if changing.
env_vars
object
Replacement environment variables, if changing (PORT will be overridden).