Skip to content

Commit

Permalink
ENGDOCS-2221 (#20903)
Browse files Browse the repository at this point in the history
  • Loading branch information
aevesdocker committed Sep 16, 2024
1 parent 9232229 commit a8a0a82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions content/manuals/compose/startup-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Compose creates services in dependency order. `db` and `redis` are created befor

Compose waits for healthchecks to pass on dependencies marked with `service_healthy`. `db` is expected to be "healthy" (as indicated by `healthcheck`) before `web` is created.

`restart: true` ensures that if `db` is updated or restarted due to an explicit Compose operation, for example `docker compose restart`, the `web` service is also restarted automatically, ensuring it re-establishes connections or dependencies correctly.

The healthcheck for the `db` service uses the `pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'` command to check if the PostgreSQL database is ready. The service is retried every 10 seconds, up to 5 times.

Compose also removes services in dependency order. `web` is removed before `db` and `redis`.
Expand Down
2 changes: 1 addition & 1 deletion content/reference/compose-file/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ volumes:

This makes it possible to make this lookup name a parameter of the Compose file, so that the model ID for the volume is hard-coded but the actual volume ID on the platform is set at runtime during deployment.

For example, if `DATABASE_VOLUME=my_volume_001` in your `.env` file:
For example, if `DATABASE_VOLUME=my_volume_001` is in your `.env` file:

```yml
volumes:
Expand Down

0 comments on commit a8a0a82

Please sign in to comment.