-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
executable file
·168 lines (156 loc) · 4.23 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
services:
jupyter:
build: ./jupyter/
environment:
- AWS_ENDPOINT_URL=http://minio:9000
- S3_BUCKET=test
- AWS_ACCESS_KEY_ID=jupyteraccesskey
- AWS_SECRET_ACCESS_KEY=jupytersupersecretkey
ports:
- 8888:8888
volumes:
- ./data:/data
- ./jupyter/notebooks/:/notebooks/
postgres:
image: postgres:14
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- postgres-db:/var/lib/postgresql/data
- ./superset/init_supersetdb.sql:/docker-entrypoint-initdb.d/init_supersetdb.sql
- ./airflow_/init_airflowdb.sql:/docker-entrypoint-initdb.d/init_airflowdb.sql
- ./metastore/init_metastoredb.sql:/docker-entrypoint-initdb.d/init_metastoredb.sql
healthcheck:
test: ["CMD", "pg_isready","-U", "postgres"]
restart: always
metastore:
build: ./metastore
# volumes:
# - hive-data:/opt/warehouse # /user/hive/warehouse is where hive standalone metastore keeps data
ports:
- 9083:9083 #Thrift port
depends_on:
- postgres
- minio
minio:
image: quay.io/minio/minio
command: ["server", "/data", "--console-address", ":9090"]
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=minio123
# - MINIO_IDENTITY_OPENID_CLAIM_NAME=policy
# - MINIO_BROWSER_REDIRECT_URL=http://localhost:9000/
volumes:
- minio-data:/data
ports:
- 9090:9090
- 9000:9000
minio-init:
build: ./minio # MinioClient image; use it to make buckets and perform any other tasks on startup
depends_on:
- minio
volumes:
- ./data:/data
trino:
build: ./trino
ports:
- 8880:8080
keycloak:
command: ["start-dev", "--import-realm", "--hostname", "http://localhost:8123", "--hostname-backchannel-dynamic", "true"]
build: ./keycloak
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
ports:
- 8123:8080
volumes:
- keycloak-data:/opt/keycloak/data
# dremio:
# image: dremio/dremio-oss
# ports:
# - 9047:9047
# volumes:
# - dremio-data:/opt/dremio/data/
# dremio-init:
# image: curlimages/curl
# entrypoint: ["/bin/sh"]
# command:
# - -c
# - |
# until curl -s -f -o /dev/null "http://dremio:9047/live"
# do
# sleep 5
# done
# curl http://dremio:9047/apiv2/bootstrap/firstuser -X PUT -H 'Authorization: _dremionull' -H 'Content-Type: application/json' -d '{
# "userName":"dremio","firstName":"dremio","lastName":"dremio","email":"[email protected]","createdAt":1526186430755,"password":"dremio123"
# }'
# dbt:
# build: ./dbt
# entrypoint: ["/bin/bash", "-c"]
# volumes:
# - ./dbt/project/:/usr/app/dbt/
# - ./dbt/dot-dbt/:/root/.dbt/
redis:
image: redis:latest
expose:
- 6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 30s
retries: 50
start_period: 30s
restart: always
volumes:
- redis-data:/data
# mongo:
# image: mongo:6.0
# restart: unless-stopped
# environment:
# MONGO_INITDB_DATABASE: mongo
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: example
# ports:
# - 27017:27017
# volumes:
# - mongo_data:/data/db
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:7.17.0
# environment:
# - "ES_JAVA_OPTS=-Xms1024m -Xmx2g"
# - discovery.type=single-node
# ulimits:
# memlock:
# soft: -1
# hard: -1
# volumes:
# - elasticsearch_data:/usr/share/elasticsearch/data
# ports:
# - 9200:9200
# nginx:
# build:
# context: ./nginx
# ports:
# - 80:80
# - 443:443
# healthcheck:
# test: ['CMD', 'curl', '-f', 'http://localhost:80']
# # restart: always
# cloudbeaver:
# image: dbeaver/cloudbeaver
# ports:
# - 8978:8978
# volumes:
# - cloudbeaver-data:/opt/cloudbeaver/workspace
volumes:
postgres-db:
hive-data:
minio-data:
redis-data:
dremio-data:
cloudbeaver-data:
keycloak-data:
# elasticsearch_data:
# mongo_data: