forked from dbt-labs/dbt-spark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
30 lines (28 loc) · 807 Bytes
/
docker-compose.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
version: "3.7"
services:
dbt-spark3-thrift:
build:
context: ./docker
dockerfile: spark.Dockerfile
ports:
- "10000:10000"
- "4040:4040"
depends_on:
- dbt-hive-metastore
command: >
--class org.apache.spark.sql.hive.thriftserver.HiveThriftServer2
--name Thrift JDBC/ODBC Server
volumes:
- ./.spark-warehouse/:/spark-warehouse/
- ./docker/hive-site.xml:/usr/spark/conf/hive-site.xml
- ./docker/spark-defaults.conf:/usr/spark/conf/spark-defaults.conf
environment:
- WAIT_FOR=dbt-hive-metastore:5432
dbt-hive-metastore:
image: postgres:9-alpine
volumes:
- ./.hive-metastore/:/var/lib/postgresql/data
environment:
- POSTGRES_USER=dbt
- POSTGRES_PASSWORD=dbt
- POSTGRES_DB=metastore