avast/gradle-docker-compose-plugin

Problem with container logs

Aberta

#436 aberto em 1 de fev. de 2024

 (0 comentário) (4 reações) (0 responsável)Groovy (103 forks)batch import
help wanted

Métricas do repositório

Stars
 (429 estrelas)
Métricas de merge de PR
 (Mesclagem média 24d 11h) (2 fundiu PRs em 30d)

Description

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?

Guia do colaborador