What applying a Compose file to the project made from it would change,
service by service: added, changed (and what), unchanged, or not in the
file. Only what the file sets is compared, so settings changed in Pyo
that the file doesn't mention stay. A secret's value is never changed.
An image's tag follows the file only when the file changed it.
What can't change in place is listed under manual and left as it is.
Nothing changes. Pass file to the syncCompose operation to apply it,
or to importCompose when there's no project yet.
Besides Compose, each service's x-pyo can set domains, behindCdn
("cloudflare" or "none"), health (a path like "/healthz", "tcp" or
"none"), replicas, placement ({"servers": [...], "tags": [...]})
and secrets (variable names; their values are set in Pyo).
API key access: read.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
application/jsonA Compose file to sync: its text, or a file in one of the team's GitHub repositories, and the project it goes to.
teamId*stringThe team it's for.
projectId?|The project to sync. Without it: the team's project made from a Compose file of the same name, when there's one.
file?|The Compose file's text, when it isn't read from a repository.
env?|A .env file's text, for ${VAR}s and env_file: .env.
repo?null|clusterId?|The cluster new services go to: their public web ports get a free domain on it.
name?|The project's name, when the file has none.
fileName?|The file's name, e.g. "compose.yaml". Services remember it.
The plan.
application/jsonWhat a sync would change.
project?null|services*array<>The file's services in deploy order, then the project's services that aren't in the file.
warnings*array<>What the file has that Pyo doesn't carry over.
file*The file as Pyo reads it: pass it to syncCompose (or importCompose).
curl -X POST 'https://your-pyo.example.com/api/v1/compose/sync-plan' \
-H 'Content-Type: application/json' \
-d '{
"teamId": "string"
}'{
"project": null,
"services": [
{
"name": "string",
"composeName": "string",
"serviceId": "string",
"status": "string",
"changes": [
{
"field": "string",
"from": "string",
"to": "string"
}
],
"notes": [
{
"field": "string",
"message": "string"
}
],
"manual": [
{
"field": "string",
"message": "string"
}
],
"deploy": true,
"fromFile": true
}
],
"warnings": [
{
"service": "string",
"field": "string",
"message": "string"
}
],
"file": {
"project": {
"name": "string",
"namespace": "string",
"file": "string"
},
"services": [
{
"name": "string",
"composeName": "string",
"source": {
"type": "string",
"image": "string",
"reference": "string",
"repoUrl": "string",
"branch": "string",
"buildContext": "string",
"dockerfilePath": "string",
"buildArgs": [
{
"key": "string",
"value": "string",
"secret": true
}
],
"installationId": 0,
"private": true
},
"ports": [
{
"name": "string",
"containerPort": 0,
"protocol": "string",
"public": true,
"publicPort": 0,
"domain": "string"
}
],
"env": [
{
"key": "string",
"value": "string",
"secret": true
}
],
"volumes": [
{
"name": "string",
"mountPath": "string",
"sizeGi": 0,
"fromBind": true
}
],
"healthCheck": {},
"replicas": 0,
"resources": {
"cpuRequest": 0,
"cpuLimit": 0,
"memoryRequest": 0,
"memoryLimit": 0,
"gpu": 0
},
"container": {},
"dependsOn": [
"string"
],
"managed": [
"string"
],
"domains": [
"string"
],
"behindCdn": "string",
"placement": {},
"secrets": [
"string"
]
}
],
"warnings": [
{
"service": "string",
"field": "string",
"message": "string"
}
]
}
}