-
Notifications
You must be signed in to change notification settings - Fork 272
/
docker-compose-dv.yml
29 lines (29 loc) · 1.02 KB
/
docker-compose-dv.yml
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
version: '2'
services:
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
ports:
- 5432:5432
volumes:
- ./examples/do-this-first/database_user.sql:/docker-entrypoint-initdb.d/database_user.sql
- ./examples/do-this-first/populate_tables.sql:/docker-entrypoint-initdb.d/populate_tables.sql
- ./examples/datavault-example/setup/datavault.sql:/docker-entrypoint-initdb.d/datavault.sql
- ./examples/datavault-example/setup/dwh_tables.sql:/docker-entrypoint-initdb.d/dwh_tables.sql
webserver:
image: puckel/docker-airflow:1.8.0
restart: always
depends_on:
- postgres
environment:
- LOAD_EX=n
- EXECUTOR=Local
volumes:
- ./examples/datavault-example/dags:/usr/local/airflow/dags
- ./examples/datavault-example/sql:/usr/local/airflow/sql
ports:
- 8080:8080
command: webserver