Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose support #83

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

Docker Compose support #83

wants to merge 16 commits into from

Conversation

daichitakahashi
Copy link
Owner

See #51

daichitakahashi and others added 16 commits February 23, 2023 22:45
* Options for `docker compose`
  * `ModDir` as special value that designates module's root directory use with `WithProjectDir`
    * User can specify Docker Compose config files by relative path from module directory
* Design resource policy of `Compose`
  * Remove resources created by `ComposeProject` itself
  * Do not remove resources created by other process
  * Add `compose.ScalePolicy`
  * Follow `ResourcePolicy`
* If user needs consistency about scaling of service, use `WithScalingPolicies` like below:
```
confort.Compose(ctx, "compose.yaml", confort.WithScalingPolicies(map[string]compose.ScalingPolicy{
    "serviceA": compose.ScalingPolicyScalable, // It's default value, allows service to scale out.
    "serviceB": compose.ScalingPolicyConsistent, // Prohibit service from scaling out.
}))
```
* Compare configuration used for calling Docker Compose CLI with golden files
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.

None yet

1 participant