mirror of
https://github.com/docker/docs.git
synced 2026-03-29 23:38:56 +07:00
Fix minor typos (#22419)
## Description Fixed minor typos to improve readability.
This commit is contained in:
@@ -111,8 +111,8 @@ services:
|
||||
# Only start backend and db
|
||||
$ docker compose up -d
|
||||
|
||||
# This runs db-migrations (and,if necessary, start db)
|
||||
# by implicitly enabling the profiles `tools`
|
||||
# This runs db-migrations (and, if necessary, start db)
|
||||
# by implicitly enabling the profiles "tools"
|
||||
$ docker compose run db-migrations
|
||||
```
|
||||
|
||||
@@ -150,7 +150,7 @@ services:
|
||||
$ docker compose up -d
|
||||
|
||||
# Start mock-backend (and, if necessary, db)
|
||||
# by implicitly enabling profiles `dev`
|
||||
# by implicitly enabling profiles "dev"
|
||||
$ docker compose up -d mock-backend
|
||||
|
||||
# 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.
|
||||
|
||||
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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user