fly-io · Schema
MachineService
A network service definition for exposing a Machine to external traffic.
Properties
| Name | Type | Description |
|---|---|---|
| protocol | string | Transport protocol for this service. |
| internal_port | integer | The port the application listens on inside the Machine. |
| ports | array | List of external port mappings for this service. |
| concurrency | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/MachineService",
"title": "MachineService",
"type": "object",
"description": "A network service definition for exposing a Machine to external traffic.",
"properties": {
"protocol": {
"type": "string",
"description": "Transport protocol for this service.",
"enum": [
"tcp",
"udp"
]
},
"internal_port": {
"type": "integer",
"description": "The port the application listens on inside the Machine."
},
"ports": {
"type": "array",
"description": "List of external port mappings for this service.",
"items": {
"$ref": "#/components/schemas/MachinePort"
}
},
"concurrency": {
"$ref": "#/components/schemas/MachineServiceConcurrency"
}
}
}