In row 55 to 57 it is written following:
Within the `web` container, your connection string to `db` would look like
`postgres://db:5432`, and from the host machine, the connection string would
look like `postgres://{DOCKER_IP}:8001`.
As the container is running postgres on port 5432 the it should be `postgres://{DOCKER_IP}:5432` in the end of that sentence.
This commit is contained in:
Mats Luspa 2023-02-10 12:52:52 +01:00 committed by GitHub
parent 0d02de9a68
commit b95bbd15b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ the service is accessible outside the swarm as well.
Within the `web` container, your connection string to `db` would look like
`postgres://db:5432`, and from the host machine, the connection string would
look like `postgres://{DOCKER_IP}:8001`.
look like `postgres://{DOCKER_IP}:5432`.
## Update containers on the network