From 2ca509c6062b21c10be39ff29821856c9ed6dcd6 Mon Sep 17 00:00:00 2001 From: Alex Rock Ancelet Date: Mon, 15 Apr 2019 10:50:30 +0200 Subject: [PATCH] Update Symfony server docs to be more highlighted --- setup/symfony_server.rst | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/setup/symfony_server.rst b/setup/symfony_server.rst index 82907d60dc2..813933a755f 100644 --- a/setup/symfony_server.rst +++ b/setup/symfony_server.rst @@ -264,24 +264,25 @@ use it. First, make sure to expose the container ports: # ... -Then, check your service names and update them if needed (Symfony creates -environment variables following the name of the services so they can be -autoconfigured): +.. note:: -.. code-block:: yaml + Symfony creates environment variables following the **name of the ``docker-compose`` services**. - # docker-compose.yaml - services: - # DATABASE_URL - database: ... - # MONGODB_DATABASE, MONGODB_SERVER - mongodb: ... - # REDIS_URL - redis: ... - # ELASTISEARCH_HOST, ELASTICSEARCH_PORT - elasticsearch: ... - # RABBITMQ_DSN - rabbitmq: ... + Here is the list of services you can autoconfigure with their environment variable name: + + .. code-block:: yaml + + # docker-compose.yaml + services: + database: # DATABASE_URL + + mongodb: # MONGODB_DATABASE, MONGODB_SERVER + + redis: # REDIS_URL + + elasticsearch: # ELASTISEARCH_HOST, ELASTICSEARCH_PORT + + rabbitmq: # RABBITMQ_DSN If your ``docker-compose.yaml`` file doesn't use the environment variable names expected by Symfony (e.g. you use ``MYSQL_URL`` instead of ``DATABASE_URL``)