| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you under the Apache License, Version 2.0 (the | |
| # "License"); you may not use this file except in compliance | |
| # with the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, | |
| # software distributed under the License is distributed on an | |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| # KIND, either express or implied. See the License for the | |
| # specific language governing permissions and limitations | |
| # under the License. | |
| --- | |
| services: | |
| airflow: | |
| stdin_open: true # docker run -i | |
| tty: true # docker run -t | |
| environment: | |
| - AIRFLOW__CORE__PLUGINS_FOLDER=/files/plugins | |
| # We need to mount files and directories individually because some files | |
| # such apache_airflow.egg-info should not be mounted from host | |
| # we only mount those files, so that it makes sense to edit while developing | |
| # or those that might be useful to see in the host as output of the | |
| # tests (such as logs) | |
| volumes: | |
| - root-airflow-volume:/root/airflow/ | |
| - airflow-cache-volume:/root/.cache | |
| # START automatically generated volumes from VOLUMES_FOR_SELECTED_MOUNTS in docker_command_utils.py | |
| - type: bind | |
| source: ../../../.bash_aliases | |
| target: /root/.bash_aliases | |
| - type: bind | |
| source: ../../../.bash_history | |
| target: /root/.bash_history | |
| - type: bind | |
| source: ../../../.build | |
| target: /opt/airflow/.build | |
| - type: bind | |
| source: ../../../.dockerignore | |
| target: /opt/airflow/.dockerignore | |
| - type: bind | |
| source: ../../../.github | |
| target: /opt/airflow/.github | |
| - type: bind | |
| source: ../../../.inputrc | |
| target: /root/.inputrc | |
| - type: bind | |
| source: ../../../.rat-excludes | |
| target: /opt/airflow/.rat-excludes | |
| - type: bind | |
| source: ../../../LICENSE | |
| target: /opt/airflow/LICENSE | |
| - type: bind | |
| source: ../../../RELEASE_NOTES.rst | |
| target: /opt/airflow/RELEASE_NOTES.rst | |
| - type: bind | |
| source: ../../../airflow-core | |
| target: /opt/airflow/airflow-core | |
| - type: bind | |
| source: ../../../airflow-ctl | |
| target: /opt/airflow/airflow-ctl | |
| - type: bind | |
| source: ../../../chart | |
| target: /opt/airflow/chart | |
| - type: bind | |
| source: ../../../clients | |
| target: /opt/airflow/clients | |
| - type: bind | |
| source: ../../../constraints | |
| target: /opt/airflow/constraints | |
| - type: bind | |
| source: ../../../dags | |
| target: /opt/airflow/dags | |
| - type: bind | |
| source: ../../../dev | |
| target: /opt/airflow/dev | |
| - type: bind | |
| source: ../../../devel-common | |
| target: /opt/airflow/devel-common | |
| - type: bind | |
| source: ../../../docker-stack-docs | |
| target: /opt/airflow/docker-stack-docs | |
| - type: bind | |
| source: ../../../docker-tests | |
| target: /opt/airflow/docker-tests | |
| - type: bind | |
| source: ../../../docs | |
| target: /opt/airflow/docs | |
| - type: bind | |
| source: ../../../generated | |
| target: /opt/airflow/generated | |
| - type: bind | |
| source: ../../../go-sdk | |
| target: /opt/airflow/go-sdk | |
| - type: bind | |
| source: ../../../java-sdk | |
| target: /opt/airflow/java-sdk | |
| - type: bind | |
| source: ../../../kubernetes-tests | |
| target: /opt/airflow/kubernetes-tests | |
| - type: bind | |
| source: ../../../logs | |
| target: /root/airflow/logs | |
| - type: bind | |
| source: ../../../providers | |
| target: /opt/airflow/providers | |
| - type: bind | |
| source: ../../../providers-summary-docs | |
| target: /opt/airflow/providers-summary-docs | |
| - type: bind | |
| source: ../../../registry | |
| target: /opt/airflow/registry | |
| - type: bind | |
| source: ../../../pyproject.toml | |
| target: /opt/airflow/pyproject.toml | |
| - type: bind | |
| source: ../../../scripts | |
| target: /opt/airflow/scripts | |
| - type: bind | |
| source: ../../../scripts/docker/entrypoint_ci.sh | |
| target: /entrypoint | |
| - type: bind | |
| source: ../../../shared | |
| target: /opt/airflow/shared | |
| - type: bind | |
| source: ../../../task-sdk | |
| target: /opt/airflow/task-sdk | |
| - type: bind | |
| source: ../../../ts-sdk | |
| target: /opt/airflow/ts-sdk | |
| # END automatically generated volumes from VOLUMES_FOR_SELECTED_MOUNTS in docker_command_utils.py | |
| volumes: | |
| root-airflow-volume: | |
| labels: | |
| org.apache.airflow.breeze: "true" | |
| org.apache.airflow.breeze.worktree: "${BREEZE_WORKTREE_PATH:-}" | |
| org.apache.airflow.breeze.host: "${BREEZE_HOST_ID:-}" | |
| airflow-cache-volume: | |
| labels: | |
| org.apache.airflow.breeze: "true" | |
| org.apache.airflow.breeze.worktree: "${BREEZE_WORKTREE_PATH:-}" | |
| org.apache.airflow.breeze.host: "${BREEZE_HOST_ID:-}" |