-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 1.19 KB
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
38
39
40
41
42
43
version: '3.8'
services:
postgres:
container_name: "airflow_postgres"
image: postgres:9.6
env_file:
- .env
scheduler:
container_name: "airflow_scheduler"
build:
context: ./docker/airflow
image: apache/airflow_custom:latest
command: scheduler
restart: always
depends_on:
- postgres
env_file:
- .env
volumes:
- ./airflow/dags:/opt/airflow/dags
- ./airflow/plugins:/opt/airflow/plugins
- ./airflow/logs:/opt/airflow/logs
webserver:
container_name: "airflow_webserver"
build:
context: ./docker/airflow
image: apache/airflow_custom:latest
entrypoint: ./scripts/entrypoint.sh
restart: always
depends_on:
- postgres
env_file:
- .env
volumes:
- ./airflow/dags:/opt/airflow/dags
- ./airflow/plugins:/opt/airflow/plugins
- ./airflow/logs:/opt/airflow/logs
- ./scripts/airflow_webserver:/opt/airflow/scripts
ports:
- "8080:8080"
networks:
default:
name: airflow-dev-env