-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
142 lines (131 loc) · 3.57 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: "3.9"
services:
trino:
ports:
- "8081:8080"
image: "trinodb/trino:448"
volumes:
- ./docker/trino/etc:/usr/lib/trino/etc:ro
- ./docker/trino/catalog:/etc/trino/catalog
environment:
CATALOG_MANAGEMENT: dynamic
postgres:
ports:
- "5433:5432"
build:
context: .
dockerfile: ./docker/postgres/Dockerfile
container_name: postgres
volumes:
- ./docker/postgres/data:/data
environment:
POSTGRES_USER: dataapi
POSTGRES_PASSWORD: dataapi
# metastore_db:
# image: postgres:16
# hostname: metastore_db
# environment:
# POSTGRES_USER: hive
# POSTGRES_PASSWORD: hive
# POSTGRES_DB: metastore
# hive-metastore:
# hostname: hive-metastore
# image: 'starburstdata/hive:3.1.2-e.18'
# ports:
# - '9083:9083' # Metastore Thrift
# environment:
# HIVE_METASTORE_DRIVER: org.postgresql.Driver
# HIVE_METASTORE_JDBC_URL: jdbc:postgresql://metastore_db:5432/metastore
# HIVE_METASTORE_USER: hive
# HIVE_METASTORE_PASSWORD: hive
# HIVE_METASTORE_WAREHOUSE_DIR: s3://datalake/
# S3_ENDPOINT: http://minio:9000
# S3_ACCESS_KEY: minio
# S3_SECRET_KEY: minio123
# S3_PATH_STYLE_ACCESS: "true"
# REGION: ""
# HIVE_METASTORE_USERS_IN_ADMIN_ROLE: "admin"
# depends_on:
# - metastore_db
# minio:
# hostname: minio
# image: 'minio/minio:RELEASE.2022-05-26T05-48-41Z'
# container_name: minio
# ports:
# - '9000:9000'
# - '9001:9001'
# environment:
# MINIO_ACCESS_KEY: minio
# MINIO_SECRET_KEY: minio123
# command: server /data --console-address ":9001"
# This job will create the "datalake" bucket on Minio
# mc-job:
# image: 'minio/mc:RELEASE.2022-05-09T04-08-26Z'
# entrypoint: |
# /bin/bash -c "
# sleep 5;
# /usr/bin/mc config --quiet host add myminio http://minio:9000 minio minio123;
# /usr/bin/mc mb --quiet myminio/datalake
# "
# depends_on:
# - minio
superset:
build: ./docker/superset
ports:
- "8088:8088"
volumes:
- superset-data:/app/superset_home
environment:
SUPERSET_SECRET_KEY: "oh-so-secret"
api:
build:
context: .
dockerfile: ./docker/api/Dockerfile
ports:
- "6001:80"
volumes:
- ./src:/code
container_name: api
environment:
TRINO_HOST: "trino"
TRINO_PORT: 8080
TRINO_USER: "admin"
pipeline:
build:
context: .
dockerfile: ./docker/pipeline/Dockerfile
volumes:
- ./src:/code
environment:
TRANSACTIONAL_POSTGRES_USERNAME: "${TRANSACTIONAL_POSTGRES_USERNAME}"
TRANSACTIONAL_POSTGRES_PASSWORD: "${TRANSACTIONAL_POSTGRES_PASSWORD}"
TRANSACTIONAL_POSTGRES_HOSTNAME: "${TRANSACTIONAL_POSTGRES_HOSTNAME}"
TRANSACTIONAL_POSTGRES_PORT: ${TRANSACTIONAL_POSTGRES_PORT}
TRANSACTIONAL_POSTGRES_DATABASE: "${TRANSACTIONAL_POSTGRES_DATABASE}"
REPORTING_POSTGRES_USERNAME: "dataapi"
REPORTING_POSTGRES_PASSWORD: "dataapi"
REPORTING_POSTGRES_HOSTNAME: "postgres"
REPORTING_POSTGRES_PORT: 5432
REPORTING_POSTGRES_DATABASE: "reporting"
depends_on:
- postgres
- trino
- api
# locust:
# image: locustio/locust
# ports:
# - "8089:8089"
# volumes:
# - ./src/locust:/mnt/locust
# command: -f /mnt/locust/main.py -u 10 -r 2 -t 1h -H http://api:6001
# depends_on:
# - postgres
# - trino
# - api
networks:
default:
name: dbt-net
external: true
volumes:
superset-data:
driver: local