Skip to content

Commit 9022435

Browse files
committed
build(docker-compose): add dag-processor and rename airflow related component
1 parent 5b76a0a commit 9022435

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-10
lines changed

docker-compose-dev.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ x-docker-common: &docker-common
1414
max-size: 10m
1515

1616
services:
17-
airflow:
17+
airflow-api-server:
1818
<<: *docker-common
19-
container_name: airflow
19+
container_name: airflow-api-server
2020
ports:
2121
- "8080:8080"
22-
command: webserver
22+
command: api-server
2323
healthcheck:
2424
test: ["CMD", "curl", "--fail", "http://localhost:8080/health"]
2525
interval: 30s
@@ -31,9 +31,18 @@ services:
3131
airflow-init:
3232
condition: service_completed_successfully
3333

34-
scheduler:
34+
airflow-dag-processor:
3535
<<: *docker-common
36-
container_name: scheduler
36+
container_name: airflow-dag-processor
37+
command: dag-processor
38+
restart: always
39+
depends_on:
40+
airflow-init:
41+
condition: service_completed_successfully
42+
43+
airflow-scheduler:
44+
<<: *docker-common
45+
container_name: airflow-scheduler
3746
command: scheduler
3847
restart: always
3948
depends_on:

docker-compose.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ x-docker-common: &docker-common
1111
max-size: 10m
1212

1313
services:
14-
airflow:
14+
airflow-api-server:
1515
<<: *docker-common
16-
container_name: airflow
16+
container_name: airflow-api-server
1717
ports:
1818
- "8080:8080"
19-
command: webserver
19+
command: api-server
2020
healthcheck:
2121
test: ["CMD", "curl", "--fail", "http://localhost:8080/health"]
2222
interval: 30s
@@ -28,10 +28,20 @@ services:
2828
airflow-init:
2929
condition: service_completed_successfully
3030

31-
scheduler:
31+
airflow-dag-processor:
3232
<<: *docker-common
33-
container_name: scheduler
33+
container_name: airflow-dag-processor
34+
command: dag-processor
35+
restart: always
36+
depends_on:
37+
airflow-init:
38+
condition: service_completed_successfully
39+
40+
airflow-scheduler:
41+
<<: *docker-common
42+
container_name: airflow-scheduler
3443
command: scheduler
44+
restart: always
3545
depends_on:
3646
airflow-init:
3747
condition: service_completed_successfully

0 commit comments

Comments
 (0)