squid.yaml by convention. It defines the Cloud deployment identity, build, services, addons, environment, and resource profiles used by sqd deploy.
Minimal manifest
squid.yaml
slot or tag, sqd deploy . creates a new slot with a generated identifier. See Slots and tags before choosing a production deployment strategy.
Header
slot and tag are mutually exclusive. If neither is present, Cloud creates a new slot.
build
Cloud builds one image and runs it with different commands for init, processor, and api.
The following files must exist in the squid source:
package.jsontsconfig.jsoncommands.jsonsrc/
db/ and assets/ directories are included when present.
Example:
deploy
The deploy section is required and contains the services and addons that make up the squid.
addons
postgres
Provision managed Postgres:
14, 15, 16, 17, and 18. Cloud injects the connection variables described in the Postgres reference.
Duration fields accept an integer number of milliseconds or a value ending in us, ms, s, min, h, or d.
rpc
Provision one or more Cloud RPC endpoints:
hasura
Provision Hasura instead of an application-managed GraphQL server:
init
init runs to completion before processor and API services start. Use it for database migrations or one-time deployment initialization:
init is omitted, Cloud uses:
init exits with an error, the deployment does not start.
processor
A single processor:
processor is a list. Each entry runs as a separate service and is billed separately.
Processor services can run any executable included in the built image. That includes non-indexing workloads such as background and scheduled jobs.
api
api is optional. Add it when the deployment serves GraphQL or another HTTP API:
GRAPHQL_SERVER_PORT.
Cloud exposes APIs through slot and tag URLs:
env
Deployment-level variables are available to every service:
cors
Configure the Cloud API proxy:
enabled, allow_origin, allow_methods, allow_headers, expose_headers, allow_credentials, and max_age.
scale
The scale section selects dedicated or collocated placement and resource profiles:
Secrets
Reference an organization secret with thesecrets context:
squid.yaml.
Production example
squid.yaml