forked from zsvoboda/ngods-stocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
166 lines (158 loc) · 3.76 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
version: '3.9'
services:
minio:
hostname: minio
image: 'minio/minio'
container_name: minio
restart: always
ports:
- '9000:9000'
- '9001:9001'
volumes:
- ./data/minio:/data
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=minio123
command: server /data --console-address ":9001"
networks:
- ndsnet
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
mc:
image: minio/mc
container_name: mc
restart: always
hostname: mc
environment:
- AWS_ACCESS_KEY_ID=minio
- AWS_SECRET_ACCESS_KEY=minio123
- AWS_REGION=us-east-1
networks:
- ndsnet
entrypoint: >
/bin/sh -c "
until (/usr/bin/mc config host add minio http://minio:9000 minio minio123) do echo '...waiting...' && sleep 1; done;
/usr/bin/mc mb minio/warehouse;
/usr/bin/mc policy set public minio/warehouse;
exit 0;
"
depends_on:
minio:
condition: service_healthy
postgres:
image: postgres
restart: always
hostname: postgres
container_name: postgres
environment:
- POSTGRES_PASSWORD=ngods
- POSTGRES_USER=ngods
- POSTGRES_DB=ngods
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- '5433:5432'
volumes:
- ./data/postgres:/var/lib/postgresql/data/pgdata
networks:
- ndsnet
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ngods"]
interval: 5s
timeout: 5s
retries: 5
aio:
build: aio/
restart: always
container_name: aio
environment:
- AWS_ACCESS_KEY_ID=minio
- AWS_SECRET_ACCESS_KEY=minio123
- AWS_REGION=us-east-1
volumes:
- ./data/html:/var/lib/ngods/html
- ./data/stage:/var/lib/ngods/stage
- ./data/spark/notebooks:/var/lib/ngods/notebooks
- ./projects/dagster:/var/lib/ngods/dagster
- ./projects/dbt:/var/lib/ngods/dbt
ports:
- '8888:8888' # Spark notebook port
- '7077:7077' # Spark port
- '8061:8061' # Spark master web ui port
- '8062:8062' # Spark worker web ui port
- '10000:10000' # Thrift ODBC/JDBC port
- '10009:10009' # Kyuubi JDBC port
- '18080:18080' # Spark history web ui port
- '3070:3070' # Dagster web ui port
- '9083:9083' # Metastore thrift
networks:
ndsnet:
aliases:
- spark
- dagster
- dbt
- metastore
- aio
command:
- notebook
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
trino:
build: trino/
container_name: trino
restart: always
volumes:
- ./data/stage:/var/lib/ngods/stage
- ./certs/trino.pass:/trino.pass
- ./certs/trino_key_and_cert.pem:/trino_key_and_cert.pem
- ./certs/trino_key.pem:/trino_key.pem
- ./certs/trino_cert.pem:/trino_cert.pem
ports:
- '8060:8060' # Trino
- '8063:8063' # Trino
networks:
ndsnet:
aliases:
- trino
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
cube:
image: cubejs/cube
restart: always
container_name: cube
hostname: cube
volumes:
- ./conf/cube:/cube/conf
ports:
- 3000:3000
- 4000:4000
- 3245:3245
networks:
- ndsnet
depends_on:
- aio
metabase:
container_name: metabase
restart: always
depends_on:
- cube
hostname: metabase
build: metabase/
volumes:
- ./conf/metabase:/conf
ports:
- 3030:3030
networks:
- ndsnet
networks:
restart: always
ndsnet:
driver: bridge