Documentation
Private services
Run internal services that only your other services can reach, over your team's private network.
A private service is like a web service, but it has no public URL. Only services, workers and cron jobs in the same team can reach it, through the private network. Use it for internal APIs, gRPC backends, Elasticsearch, Meilisearch or anything you do not want on the internet.
Internal URL
Each private service gets an internal hostname equal to its slug. If your service search listens on port 7700, other services call:
http://search:7700
The dashboard shows the internal host and port under Connect. Web services and databases have internal hostnames too, so service-to-service traffic never leaves the private network.
Isolation
Each team has its own isolated network. Other teams cannot reach your services, and your services cannot reach our control plane or private address ranges. Outbound internet access works normally.
Reference it in a blueprint
services:
- type: web
name: api
envVars:
- key: SEARCH_URL
fromService:
type: pserv
name: search
property: hostport
- type: pserv
name: search
runtime: docker
plan: starter