DockerComposeExporter#
- class eclypse.io.defaults.docker_compose.DockerComposeExporter[source]#
Bases:
GraphExporter[Application,dict[str,Any]]Exporter for Docker Compose application files.
Methods
to_data(graph, *[, context])Convert an application into Docker Compose data.
write_data(data, target, *[, context])Write Docker Compose data to a YAML file.
- to_data(graph, *, context=None)[source]#
Convert an application into Docker Compose data.
- Parameters:
graph (Application) – The application to export.
context (IOContext | None) – Optional import/export customisation.
- Returns:
Docker Compose-compatible data.
- Return type:
dict[str, Any]