We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
captureContainersOutput is very useful, but when I have docker-compose with up to 10 services, this switch simply explodes my console.
captureContainersOutput
I think it would be nice to have option to enable containers output only for specified services, not for all at once.
Right now I deal with this problem by controlling log levels for each container individually, but this is really time consuming
The text was updated successfully, but these errors were encountered:
was just looking for the same feature and found this +1
A possible workaround that I am using is splitting services into two files and then making them dependent: I only need output from the main compose
main
// https://githu b.com/avast/gradle-docker-compose-plugin dockerCompose { infra { useComposeFiles = ['docker-compose-infra.yml'] dockerComposeWorkingDirectory = project.file('docker') buildAdditionalArgs = ['--force-rm'] } main{ useComposeFiles = ['docker-compose-main.yml'] dockerComposeWorkingDirectory = project.file('docker') buildAdditionalArgs = ['--force-rm'] captureContainersOutput = true } } mainComposeUp.dependsOn ear, infraComposeUp
This also has the advantage that I can do gradle mainComposeDown without having to stop my other services which are unchanged.
gradle mainComposeDown
You can then use an external network both compose files to ensure containers "see" each other:
networks: dev-network: external: true services: db-svr: image: mariadb:lts-jammy networks: - dev-network
Sorry, something went wrong.
No branches or pull requests
captureContainersOutput
is very useful, but when I have docker-compose with up to 10 services, this switch simply explodes my console.I think it would be nice to have option to enable containers output only for specified services, not for all at once.
Right now I deal with this problem by controlling log levels for each container individually, but this is really time consuming
The text was updated successfully, but these errors were encountered: