From caa99db86f075307b41158e21ed4275268b65d83 Mon Sep 17 00:00:00 2001 From: Evelyn Dang Date: Fri, 5 Jan 2024 22:09:02 +1100 Subject: [PATCH] Update networking.md to use correct term "service name" (#19041) --- content/compose/networking.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/compose/networking.md b/content/compose/networking.md index 8dc16ec6aa..7abbf36ecc 100644 --- a/content/compose/networking.md +++ b/content/compose/networking.md @@ -40,7 +40,7 @@ When you run `docker compose up`, the following happens: 3. A container is created using `db`'s configuration. It joins the network `myapp_default` under the name `db`. -Each container can now look up the hostname `web` or `db` and +Each container can now look up the service name `web` or `db` and get back the appropriate container's IP address. For example, `web`'s application code could connect to the URL `postgres://db:5432` and start using the Postgres database.