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

Problem with container logs #436

Open
LiGeten opened this issue Feb 1, 2024 · 0 comments
Open

Problem with container logs #436

LiGeten opened this issue Feb 1, 2024 · 0 comments

Comments

@LiGeten
Copy link

LiGeten commented Feb 1, 2024

web:
image: web
healthcheck:
interval: 5s
timeout: 5s
retries: 60
test: curl -sS http://127.0.0.1 || echo 1

worker
image: worker
depends_on:
web: { condition: service_healthy }

if I use depends_on then container logs start writing (captureContainersOutputToFiles = 'build/compose_log') only when all containers accept the UP(it's starting) status
that is, when 'web' starts - 'worker' has the 'create' status until the web takes on the healthy status and logs will be written to the 'build/compose_log' folder only after that, so in case of problems with raising the ' web' container, the logs will be in the folder is not written, this is very inconvenient, can I do something about it?

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

No branches or pull requests

2 participants