docker-bookstack icon indicating copy to clipboard operation
docker-bookstack copied to clipboard

SOLIDNERD / BOOKSTACK & REDIS - Container is up befor REDIS is ready

Open bderpan opened this issue 2 months ago • 1 comments

Hi, thx for your great work on this Image :)

I have a Problem to use REDIS with your Image. The Bookstack Conatiner is already on befor REDIS is ready. In my compose file is the bookstack container depend on redis and mariadb.

Can U help me :)

greetz Chris

bderpan avatar Oct 30 '25 10:10 bderpan

Hi Chris. Sound like this is a Docker Compose issue rather than one with this container, but I'll still try and help. Can you attach a copy of your Compose file?

The depends_on field in a Compose file does not wait until a container is "ready", only until it's running. You might need to leverage the condition attribute with service_healthy, similar to this example. Note that you'll need a healthcheck configured for your Redis container in order to use this.

rjhenry avatar Oct 30 '25 11:10 rjhenry