-
-
Notifications
You must be signed in to change notification settings - Fork 194
/
compose.yaml
37 lines (36 loc) · 1.55 KB
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
services:
airflow:
build:
context: .
dockerfile: ./docker/Dockerfile
command: ["standalone"]
environment:
AIRFLOW__CORE__SQL_ALCHEMY_CONN: sqlite:////home/airflow_db/airflow.db
AIRFLOW__CORE__LOAD_EXAMPLES: "false"
AIRFLOW__CORE__LOAD_DEFAULT_CONNECTIONS: "false"
AIRFLOW__CORE__LOGGING_LEVEL: INFO
AIRFLOW__SECRETS__BACKEND: airflow.secrets.local_filesystem.LocalFilesystemBackend
AIRFLOW__SECRETS__BACKEND_KWARGS: '{"variables_file_path":"/root/airflow/variables.json"}'
AIRFLOW__WEBSERVER__WORKERS: 1
# For BigQuery auth issues, see https://stackoverflow.com/a/66032397
AIRFLOW_CONN_BIGQUERY_DEFAULT: "google-cloud-platform://?extra__google_cloud_platform__project=${CLOUDSDK_CORE_PROJECT}"
AIRFLOW_CONN_GOOGLE_CLOUD_DEFAULT: "google-cloud-platform://?extra__google_cloud_platform__project=${CLOUDSDK_CORE_PROJECT}"
DAGS_FOLDER: /root/airflow/dags
CLOUDSDK_CORE_PROJECT:
GCLOUD_PROJECT: ${CLOUDSDK_CORE_PROJECT}
GOOGLE_CLOUD_PROJECT: ${CLOUDSDK_CORE_PROJECT}
ports:
- 8080:8080
volumes:
- airflow_db:/home/airflow_db
- airflow_logs:/root/airflow/logs
- ./dags:/root/airflow/dags
- ./docker/variables.json:/root/airflow/variables.json
- ./docker/webserver_config_local.py:/root/airflow/webserver_config.py:ro
- ~/.config/gcloud:/root/.config/gcloud
volumes:
# Used to persist metadata across runs:
airflow_db:
# Used to share logs between scheduler and webserver so they actually show
# up in the UI:
airflow_logs: