From a95fcaeb3d0704a094f1219dcb65cd2aff298463 Mon Sep 17 00:00:00 2001 From: Anton Makarenko <5018813+ftoh@users.noreply.github.com> Date: Mon, 27 Mar 2023 21:10:55 +0700 Subject: [PATCH] Update https://docs.docker.com/compose/networking/ (#16902) * Update networking.md * Update compose/networking.md Co-authored-by: Guillaume Lours <705411+glours@users.noreply.github.com> --------- Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> Co-authored-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- compose/networking.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/networking.md b/compose/networking.md index 3859c617d1..fbcb1ae89c 100644 --- a/compose/networking.md +++ b/compose/networking.md @@ -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}:5432`. +look like `postgres://{DOCKER_IP}:8001` for example `postgres://localhost:8001` if your container is running locally. ## Update containers on the network