Docs / Compute

Private Services

Private services run HTTP apps that are not exposed on the public internet. They use the same build and deploy pipeline as web services but Traefik/gateway public routing is disabled.

When to use a private service

  • Internal APIs consumed only by other services in your workspace
  • Admin tools that should never receive public traffic
  • Microservices behind a public web service gateway

Create a private service

  1. Click + New → Private Service.
  2. Configure build/start commands or a Dockerfile.
  3. Bind to 0.0.0.0 and PORT like a web service.

Reachability

Sibling services connect via container hostname lc-{serviceId} on the configured PORT over the workspace Docker network. There is no private DNS discovery API — use env vars to pass hostnames between services.

See Workspace private network.