Goal
Wire services together with explicit connections instead of hardcoded URLs.Prerequisites
- An application with at least two services
Workflow
1
Open the application and choose Connect.
2
Pick the service that needs access, the target service or database, and the environment variable name.
3
Redeploy the source service — the dashboard flags it until the new variable is applied.
4
Read the variable in your code exactly like any other environment variable.
Retired services
Deleting and retired services are excluded from application service lists, release membership and connection-source queries. Their historical records remain stored, but old outgoing connections no longer block active services after a move. Stopped and failed services remain eligible for redeployment. An active service connected to a retired target still has an unresolved dependency. Disconnect or replace that target before deploying; StackShift does not silently drop a required endpoint.Public and private services
- Public services get a stackshift.app URL and answer to the internet.
- Private services have no public URL at all — not a hidden one, none. They are reachable only from services in the same application.
- Workers, scheduled jobs, and databases are always private.
- Flipping a service to private removes its public routes; flipping it back assigns a fresh URL. A project that serves merchant websites cannot be made private or attached as a private service: the answer is 409 project_has_merchant_websites with the number of websites in details.count.
How internal traffic works
- Every service gets an internal hostname: <service>.<application-network>.stackshift.internal.
- Internal hostnames only resolve inside your application network — they do not exist on public DNS.
- Traffic between applications is blocked at the platform level, so another tenant can never reach your private services.
- The same internal URL works whether the target runs in a standard container or a MicroVM.
Expected result
The source service reads something like API_URL=http://api.myapp-1a2b3c4d.stackshift.internal:8080 and calls its sibling over the private network.
Common failures
Related guides
Build a multi-service application
Create an application, add public and private services from one repo or many, and let each service deploy independently while sharing one private network.
Project environment, domains, and previews
Configure the project surfaces that most often decide whether a deployment works after it builds, including runtime shape, domains, previews, and storage.
Config as code (stackshift.yaml)
Describe an application in one file in your repository. Every push applies it, every pull request shows a plan, and risky changes wait for you.