2023-03-06 08:58:53 -08:00
|
|
|
# Copyright 2021 Collate
|
|
|
|
# Licensed 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.
|
|
|
|
|
|
|
|
version: "3.9"
|
|
|
|
volumes:
|
|
|
|
ingestion-volume-dag-airflow:
|
|
|
|
ingestion-volume-dags:
|
|
|
|
ingestion-volume-tmp:
|
|
|
|
es-data:
|
|
|
|
services:
|
|
|
|
ingestion:
|
|
|
|
container_name: openmetadata_ingestion
|
2025-04-24 10:46:36 +05:30
|
|
|
image: docker.getcollate.io/openmetadata/ingestion:1.8.0-SNAPSHOT
|
2023-03-06 08:58:53 -08:00
|
|
|
environment:
|
|
|
|
AIRFLOW__API__AUTH_BACKENDS: "airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session"
|
|
|
|
AIRFLOW__CORE__EXECUTOR: LocalExecutor
|
|
|
|
AIRFLOW__OPENMETADATA_AIRFLOW_APIS__DAG_GENERATED_CONFIGS: "/opt/airflow/dag_generated_configs"
|
|
|
|
DB_HOST: ${AIRFLOW_DB_HOST:-mysql}
|
|
|
|
DB_PORT: ${AIRFLOW_DB_PORT:-3306}
|
|
|
|
AIRFLOW_DB: ${AIRFLOW_DB:-airflow_db}
|
2025-02-18 07:56:46 +01:00
|
|
|
DB_SCHEME: ${AIRFLOW_DB_SCHEME:-mysql+mysqldb}
|
2023-03-06 08:58:53 -08:00
|
|
|
DB_USER: ${AIRFLOW_DB_USER:-airflow_user}
|
|
|
|
DB_PASSWORD: ${AIRFLOW_DB_PASSWORD:-airflow_pass}
|
2023-12-06 13:13:49 +05:30
|
|
|
# extra connection-string properties for the database
|
|
|
|
# EXAMPLE
|
|
|
|
# require SSL (only for Postgres)
|
|
|
|
# properties: "?sslmode=require"
|
2023-12-06 19:56:19 +05:30
|
|
|
DB_PROPERTIES: ${AIRFLOW_DB_PROPERTIES:-}
|
2023-12-06 13:13:49 +05:30
|
|
|
# To test the lineage backend
|
|
|
|
# AIRFLOW__LINEAGE__BACKEND: airflow_provider_openmetadata.lineage.backend.OpenMetadataLineageBackend
|
|
|
|
# AIRFLOW__LINEAGE__AIRFLOW_SERVICE_NAME: local_airflow
|
|
|
|
# AIRFLOW__LINEAGE__OPENMETADATA_API_ENDPOINT: http://openmetadata-server:8585/api
|
|
|
|
# AIRFLOW__LINEAGE__JWT_TOKEN: ...
|
2023-03-06 08:58:53 -08:00
|
|
|
entrypoint: /bin/bash
|
|
|
|
command:
|
|
|
|
- "/opt/airflow/ingestion_dependency.sh"
|
|
|
|
expose:
|
|
|
|
- 8080
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
networks:
|
|
|
|
- app_net
|
|
|
|
volumes:
|
|
|
|
- ingestion-volume-dag-airflow:/opt/airflow/dag_generated_configs
|
|
|
|
- ingestion-volume-dags:/opt/airflow/dags
|
|
|
|
- ingestion-volume-tmp:/tmp
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
app_net:
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: "172.16.240.0/24"
|