Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

docker-client/docker-compose-v3

Repository files navigation

Build StatusMaven Central

docker-compose-v3

About

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.

Usage

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.

Contributing

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!

Publishing/Release Workflow

See RELEASE.md


[8]ページ先頭

©2009-2025 Movatter.jp