Skip to content

Commit db3128c

Browse files
committed
feat(docker-compose): setup triggerer
1 parent 81cf9ff commit db3128c

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

docker-compose-dev.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@ services:
6363
airflow-init:
6464
condition: service_completed_successfully
6565

66+
airflow-triggerer:
67+
<<: *docker-common
68+
container_name: airflow-triggerer
69+
command: triggerer
70+
healthcheck:
71+
test: ["CMD-SHELL", 'airflow jobs check --job-type TriggererJob --hostname "$${HOSTNAME}"']
72+
interval: 30s
73+
timeout: 10s
74+
retries: 5
75+
start_period: 30s
76+
restart: always
77+
depends_on:
78+
airflow-init:
79+
condition: service_completed_successfully
80+
6681
airflow-init:
6782
<<: *docker-common
6883
entrypoint: /bin/bash

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ services:
5858
airflow-init:
5959
condition: service_completed_successfully
6060

61+
airflow-triggerer:
62+
<<: *docker-common
63+
container_name: airflow-triggerer
64+
command: triggerer
65+
healthcheck:
66+
test: ["CMD-SHELL", 'airflow jobs check --job-type TriggererJob --hostname "$${HOSTNAME}"']
67+
interval: 30s
68+
timeout: 10s
69+
retries: 5
70+
start_period: 30s
71+
restart: always
72+
depends_on:
73+
airflow-init:
74+
condition: service_completed_successfully
75+
6176
airflow-init:
6277
<<: *docker-common
6378
entrypoint: /bin/bash

0 commit comments

Comments
 (0)