This is an automated email from the ASF dual-hosted git repository.
uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new fe28902 Add docker-compose explanation to conn localhost (#19076)
fe28902 is described below
commit fe2890246a7c3d014daa909cb19ac523edb15005
Author: Fernando Bugni <[email protected]>
AuthorDate: Tue Oct 19 17:24:32 2021 -0300
Add docker-compose explanation to conn localhost (#19076)
---
docs/apache-airflow/start/docker.rst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/docs/apache-airflow/start/docker.rst
b/docs/apache-airflow/start/docker.rst
index 22763d9..023f669 100644
--- a/docs/apache-airflow/start/docker.rst
+++ b/docs/apache-airflow/start/docker.rst
@@ -82,6 +82,8 @@ This file contains several service definitions:
- ``postgres`` - The database.
- ``redis`` - `The redis <https://redis.io/>`__ - broker that forwards
messages from scheduler to worker.
+In general, if you want to use airflow locally, your DAGs may try to connect
to servers which are running on the host. In order to achieve that, an extra
configuration must be added in ``docker-compose.yaml``. For example, on Linux
the configuration must be in the section ``services: airflow-worker`` adding
``extra_hosts: - "host.docker.internal:host-gateway"``; and use
``host.docker.internal`` instead of ``localhost``. This configuration vary in
different platforms. Please, see document [...]
+
All these services allow you to run Airflow with :doc:`CeleryExecutor
</executor/celery>`. For more information, see :doc:`/concepts/overview`.
Some directories in the container are mounted, which means that their contents
are synchronized between your computer and the container.