Skip to content

Commit

Permalink
docker compose doc changes (#30662)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowrna committed Apr 15, 2023
1 parent 18e5612 commit 1cf1fc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ x-airflow-common:
volumes:
- ${AIRFLOW_PROJ_DIR:-.}/dags:/opt/airflow/dags
- ${AIRFLOW_PROJ_DIR:-.}/logs:/opt/airflow/logs
- ${AIRFLOW_PROJ_DIR:-.}/config:/opt/airflow/config
- ${AIRFLOW_PROJ_DIR:-.}/plugins:/opt/airflow/plugins
user: "${AIRFLOW_UID:-50000}:0"
depends_on:
Expand Down
3 changes: 2 additions & 1 deletion docs/apache-airflow/howto/docker-compose/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Some directories in the container are mounted, which means that their contents a

- ``./dags`` - you can put your DAG files here.
- ``./logs`` - contains logs from task execution and scheduler.
- ``./config`` - you can add custom log parser or add ``airflow_local_settings.py`` to configure cluster policy.
- ``./plugins`` - you can put your :doc:`custom plugins </authoring-and-scheduling/plugins>` here.

This file uses the latest Airflow image (`apache/airflow <https://hub.docker.com/r/apache/airflow>`__).
Expand All @@ -124,7 +125,7 @@ You have to make sure to configure them for the docker-compose:

.. code-block:: bash
mkdir -p ./dags ./logs ./plugins
mkdir -p ./dags ./logs ./plugins ./config
echo -e "AIRFLOW_UID=$(id -u)" > .env
See :ref:`Docker Compose environment variables <docker-compose-env-variables>`
Expand Down

0 comments on commit 1cf1fc4

Please sign in to comment.