Skip to content

Commit

Permalink
airflow scale out schedulers
Browse files Browse the repository at this point in the history
  • Loading branch information
cherusk committed Nov 21, 2023
1 parent cb42d5a commit 7fdab67
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
##
version: '3.4'
services:
airflow:
airflow_web:
build:
context: ./
dockerfile: ./Dockerfile-dask
Expand All @@ -30,14 +30,31 @@ services:
- env_vars/pals_locking.env
- env_vars/service_vars.env
# minimum of setup steps
# on sequencial executor and local sqlite
entrypoint: bash -c "airflow db init; airflow users create -u airflow -p airflow -r Admin -f airflow -l airflow -e airflow; (airflow scheduler &); airflow webserver"
entrypoint: bash -c "airflow db init; airflow users create -u airflow -p airflow -r Admin -f airflow -l airflow -e airflow; airflow webserver"
volumes:
- ./testing/infra/credentials/ssh/:/opt/airflow/credentials/
- ./breeder/dags:/opt/airflow/dags/
- airflow-logs-volume:/opt/airflow/logs/
ports:
- 127.0.0.1:8080:8080
airflow_scheduler:
build:
context: ./
dockerfile: ./Dockerfile-dask
restart: always
env_file:
- env_vars/airflow_vars.env
- env_vars/archive_db.env
- env_vars/meta_db.env
- env_vars/pals_locking.env
- env_vars/service_vars.env
entrypoint: bash -c "airflow scheduler"
volumes:
- ./testing/infra/credentials/ssh/:/opt/airflow/credentials/
- ./breeder/dags:/opt/airflow/dags/
- airflow-logs-volume:/opt/airflow/logs/
deploy:
replicas: 2
meta_data_db:
hostname: meta-data-db
image: postgres:13
Expand Down

0 comments on commit 7fdab67

Please sign in to comment.