- Notifications
You must be signed in to change notification settings - Fork4
License
docker-client/docker-compose-v3
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a small library to load Docker Compose v3 YAML files for further consumption. The driving force is theDocker Client library, where the equivalent todocker stack deploy needs to load such Compose v3 YAML files.
A bit more clarification can be found atissue #2.
Given a Compose file being available asInputStream and itsworkingDir you can read the YAML file like this:
InputStream composeStack = getClass().getResourceAsStream('docker-stack.yml')String workingDir = Paths.get(getClass().getResource('docker-stack.yml').toURI()).parentComposeConfig composeConfig = new ComposeFileReader().load(composeStack, workingDir, System.getenv())...You can find a real life example at theDocker Client's DeployConfigReader.
Please submit an issue if you'd like to ask a question or propose a new feature (maybe Compose v2 support?). Pull Requests are welcome, too!
See RELEASE.md
About
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.