EE
Size: a a a
EE
RW
R
RW
However, for startup Compose does not wait until a container is “ready” (whatever that means for your particular application) - only until it’s running. There’s a good reason for this.
The problem of waiting for a database (for example) to be ready is really just a subset of a much larger problem of distributed systems. In production, your database could become unavailable or move hosts at any time. Your application needs to be resilient to these types of failures.
To handle this, design your application to attempt to re-establish a connection to the database after a failure. If the application retries the connection, it can eventually connect to the database.
M
depends_on:
- rabbitmq
GG
depends_on:
- rabbitmq
GG
GG
M
GG
M
R
GG
NA
GG
EE
П
П