From 962e0875f7e8a5422580899e5952bd010e896d09 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 26 Feb 2021 11:12:46 +0100 Subject: [PATCH] Make the explanation about how Docker services are detected (hopefully) clearer --- setup/symfony_server.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup/symfony_server.rst b/setup/symfony_server.rst index bd3a6718664..9784bd57e24 100644 --- a/setup/symfony_server.rst +++ b/setup/symfony_server.rst @@ -282,8 +282,11 @@ The local Symfony server provides full `Docker`_ integration for projects that use it. When the web server detects that Docker Compose is running for the project, it -automatically exposes environment variables according to the exposed port and -the name of the ``docker-compose`` services. +automatically exposes some environment variables. + +Via the ``docker-compose`` API, it looks for exposed ports used for common +services. When it detects one it knows about, it uses the service name to +expose environment variables. Consider the following configuration: