Skip to content

Commit

Permalink
pollution-v2: remove all airflow-common alias
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Mar 6, 2024
1 parent d03f37b commit 84baba9
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions pollution_v2/infrastructure/docker-compose.run.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version: "3.4"


x-airflow-common:
&airflow-common
services:
postgres:
image: postgres:13
environment:
Expand Down Expand Up @@ -42,12 +41,10 @@ x-airflow-common:
start_period: 30s
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully

airflow-scheduler:
<<: *airflow-common
command: scheduler
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8974/health"]
Expand All @@ -57,12 +54,10 @@ x-airflow-common:
start_period: 30s
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully

airflow-worker:
<<: *airflow-common
command: celery worker
healthcheck:
# yamllint disable rule:line-length
Expand All @@ -74,18 +69,15 @@ x-airflow-common:
retries: 5
start_period: 30s
environment:
<<: *airflow-common-env
# Required to handle warm shutdown of the celery workers properly
# See https://airflow.apache.org/docs/docker-stack/entrypoint.html#signal-propagation
DUMB_INIT_SETSID: "0"
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully

airflow-triggerer:
<<: *airflow-common
command: triggerer
healthcheck:
test: ["CMD-SHELL", 'airflow jobs check --job-type TriggererJob --hostname "$${HOSTNAME}"']
Expand All @@ -95,12 +87,10 @@ x-airflow-common:
start_period: 30s
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully

airflow-init:
<<: *airflow-common
entrypoint: /bin/bash
# yamllint disable rule:line-length
command:
Expand Down Expand Up @@ -151,7 +141,6 @@ x-airflow-common:
exec /entrypoint airflow version
# yamllint enable rule:line-length
environment:
<<: *airflow-common-env
_AIRFLOW_DB_MIGRATE: 'true'
_AIRFLOW_WWW_USER_CREATE: 'true'
_AIRFLOW_WWW_USER_USERNAME: ${_AIRFLOW_WWW_USER_USERNAME:-airflow}
Expand All @@ -162,11 +151,9 @@ x-airflow-common:
- ${AIRFLOW_PROJ_DIR:-.}:/sources

airflow-cli:
<<: *airflow-common
profiles:
- debug
environment:
<<: *airflow-common-env
CONNECTION_CHECK_MAX_COUNT: "0"
# Workaround for entrypoint issue. See: https://github.com/apache/airflow/issues/16252
command:
Expand All @@ -178,7 +165,6 @@ x-airflow-common:
# or by explicitly targeted on the command line e.g. docker-compose up flower.
# See: https://docs.docker.com/compose/profiles/
flower:
<<: *airflow-common
command: celery flower
profiles:
- flower
Expand All @@ -192,7 +178,6 @@ x-airflow-common:
start_period: 30s
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully

Expand Down

0 comments on commit 84baba9

Please sign in to comment.