-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (115 loc) · 2.92 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
services:
meltano:
build:
context: meltano/amo
ports:
- "5001:5000"
- "5002:8080"
depends_on:
- postgres
networks:
- meltano
volumes:
- ./meltano/amo:/projects/amo:rw
environment:
MELTANO_PROJECT_READONLY: false
MELTANO_UI_READONLY: false
MELTANO_CLI_LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_DB: meltano
DB_USER: postgres
DB_PASS: postgres
GOOGLE_CREDENTIALS: $BASE64_CREDENTIALS
restart: unless-stopped
cube:
build:
context: ./cube
ports:
- 4000:4000
- 3000:3000
environment:
CUBEJS_DEV_MODE: true
CUBEJS_DB_BQ_PROJECT_ID: $PROJECT_ID
CUBEJS_DB_BQ_CREDENTIALS: $BASE64_CREDENTIALS
CUBEJS_DB_TYPE: bigquery
CUBEJS_DB_EXPORT_BUCKET: export_data
CUBEJS_DB_EXPORT_BUCKET_TYPE: gcp
CUBEJS_CUBESTORE_HOST: cubestore_router
CUBEJS_REDIS_URL: redis://redis:6379
CUBEJS_API_SECRET: secret
volumes:
- ./cube:/cube/conf:rw
restart: unless-stopped
depends_on:
- cubestore_worker
- cube_refresh_worker
- redis
postgres:
image: postgres
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: meltano
volumes:
- meltano_postgresql_data:/var/lib/postgresql/data
expose:
- 5432
networks:
- meltano
restart: unless-stopped
cube_refresh_worker:
restart: always
build:
context: ./cube
environment:
CUBEJS_DB_BQ_PROJECT_ID: $PROJECT_ID
CUBEJS_DB_BQ_CREDENTIALS: $BASE64_CREDENTIALS
CUBEJS_DB_TYPE: bigquery
CUBEJS_DB_EXPORT_BUCKET: export_data
CUBEJS_DB_EXPORT_BUCKET_TYPE: gcp
CUBEJS_CUBESTORE_HOST: cubestore_router
CUBEJS_REDIS_URL: redis://redis:6379
CUBEJS_API_SECRET: secret
CUBEJS_REFRESH_WORKER: true
volumes:
- ./cube:/cube/conf:rw
cubestore_router:
restart: always
build:
context: ./cube
dockerfile: store.Dockerfile
environment:
- CUBESTORE_WORKERS=cubestore_worker_1:10001,cubestore_worker_2:10002
- CUBESTORE_REMOTE_DIR=/cube/data
- CUBESTORE_META_PORT=9999
- CUBESTORE_SERVER_NAME=cubestore_router:9999
volumes:
- ./cube/.cubestore:/cube/data
cubestore_worker:
restart: always
build:
context: ./cube
dockerfile: store.Dockerfile
environment:
- CUBESTORE_WORKERS=cubestore_worker_1:10001,cubestore_worker_2:10002
- CUBESTORE_SERVER_NAME=cubestore_worker_1:10001
- CUBESTORE_WORKER_PORT=10001
- CUBESTORE_REMOTE_DIR=/cube/data
- CUBESTORE_META_ADDR=cubestore_router:9999
volumes:
- ./cube/.cubestore:/cube/data
depends_on:
- cubestore_router
redis:
image: bitnami/redis:latest
environment:
- ALLOW_EMPTY_PASSWORD=yes
logging:
driver: none
networks:
meltano:
volumes:
meltano_postgresql_data:
driver: local