-
Notifications
You must be signed in to change notification settings - Fork 272
/
docker-compose-datavault2.yml
53 lines (53 loc) · 1.86 KB
/
docker-compose-datavault2.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '2'
services:
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
ports:
- 5432:5432
volumes:
- ./examples/datavault2-example/setup/100_create_database.sql:/docker-entrypoint-initdb.d/100_create_database.sql
- ./examples/datavault2-example/setup/200_create_tables.sql:/docker-entrypoint-initdb.d/200_create_tables.sql
- ./examples/datavault2-example/setup/300_permissions.sql:/docker-entrypoint-initdb.d/300_permissions.sql
- ./examples/datavault2-example/setup/data:/docker-entrypoint-initdb.d/data
hive:
image: cloudera/quickstart:latest
container_name: hive-docker
restart: always
depends_on:
- postgres
ports:
- 8888:8888
- 10000:10000
- 7180:7180
- 8020:8020
volumes:
- ./examples/datavault2-example/hive-site.xml:/etc/hive/conf.dist/hive-site.xml
hostname: quickstart.cloudera
privileged: true
tty: true
command: /usr/bin/docker-quickstart
webserver:
image: gtoonstra/docker-airflow:1.9.0
container_name: airflow
restart: always
depends_on:
- postgres
- hive
environment:
- LOAD_EX=n
- EXECUTOR=Local
- INSTALL_HIVE=y
volumes:
- ./examples/datavault2-example/dags:/usr/local/airflow/dags
- ./examples/datavault2-example/sql:/usr/local/airflow/sql
- ./examples/datavault2-example/core-site.xml:/core-site.xml
- ./examples/datavault2-example/hdfs-site.xml:/hdfs-site.xml
- ./examples/datavault2-example/mapred-site.xml:/mapred-site.xml
- /home/gt/keyfile.json:/usr/local/airflow/keyfile.json:ro
ports:
- 8080:8080
command: webserver