Skip to content

Add Docker Compose package draft - #249

Open
faisal-memon wants to merge 1 commit into
apple:mainfrom
faisal-memon:codex/add-docker-compose-package
Open

faisal-memon wants to merge 1 commit into
apple:mainfrom
faisal-memon:codex/add-docker-compose-package

Conversation

@faisal-memon

Copy link
Copy Markdown

A Pkl package for generating Docker Compose YAML. Has the following features:

  • Define Compose services, ports, volumes, networks, dependencies, health checks, and deployment resources.
  • Support Docker device reservations, including NVIDIA GPUs.
  • Include a basic example that renders to valid Compose YAML.
  • Add a package-local fixture test.

@HT154

HT154 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Hi there! Thanks for the PR.

For common formats like the compose file, we prefer to generate Pkl modules from a reference schema. In this case, the source of truth is the Compose spec.

This spec uses jsonschema, so a Pkl module can be generated using the org.json_schema.contrib package in this repo. The generated output may require some cleanup to follow Pkl best practices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants