mirror of https://github.com/docker/docs.git
Fix minor typos (#22419)
## Description Fixed minor typos to improve readability.
This commit is contained in:
parent
12698a8d47
commit
2c4fffec57
|
@ -111,8 +111,8 @@ services:
|
||||||
# Only start backend and db
|
# Only start backend and db
|
||||||
$ docker compose up -d
|
$ docker compose up -d
|
||||||
|
|
||||||
# This runs db-migrations (and,if necessary, start db)
|
# This runs db-migrations (and, if necessary, start db)
|
||||||
# by implicitly enabling the profiles `tools`
|
# by implicitly enabling the profiles "tools"
|
||||||
$ docker compose run db-migrations
|
$ docker compose run db-migrations
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ services:
|
||||||
$ docker compose up -d
|
$ docker compose up -d
|
||||||
|
|
||||||
# Start mock-backend (and, if necessary, db)
|
# Start mock-backend (and, if necessary, db)
|
||||||
# by implicitly enabling profiles `dev`
|
# by implicitly enabling profiles "dev"
|
||||||
$ docker compose up -d mock-backend
|
$ docker compose up -d mock-backend
|
||||||
|
|
||||||
# This fails because profiles "dev" is not enabled
|
# This fails because profiles "dev" is not enabled
|
||||||
|
|
|
@ -55,7 +55,7 @@ Compose waits for healthchecks to pass on dependencies marked with `service_heal
|
||||||
|
|
||||||
`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.
|
`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.
|
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`.
|
Compose also removes services in dependency order. `web` is removed before `db` and `redis`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue