-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.19 KB
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
volumes:
models: {}
services:
cubestore:
image: cubejs/cubestore:${CUBE_VERSION:-v1.6}
restart: unless-stopped
cube:
image: cubejs/cube:${CUBE_VERSION:-v1.6}
restart: unless-stopped
ports:
- "${CUBE_PORT:-4000}:4000"
volumes:
- models:/cube/conf/model:ro
- ./cube.js:/cube/conf/cube.js:ro
- ./data:/data
env_file: .env
environment:
CUBEJS_CUBESTORE_HOST: cubestore
CUBEJS_SQL_PORT: "15432"
depends_on:
cubestore:
condition: service_started
healthcheck:
test: ["CMD-SHELL", "node -e \"fetch('http://localhost:4000/livez').then(()=>process.exit(0)).catch(()=>process.exit(1))\""]
interval: 10s
timeout: 5s
retries: 15
start_period: 30s
bonnard:
image: ghcr.io/bonnard-data/bonnard:${BONNARD_VERSION:-latest}
restart: unless-stopped
ports:
- "${BONNARD_PORT:-3000}:3000"
volumes:
- models:/app/models
environment:
CUBE_API_URL: http://cube:4000
CUBE_API_SECRET: ${CUBEJS_API_SECRET:-}
ADMIN_TOKEN: ${ADMIN_TOKEN:-}
CORS_ORIGIN: ${CORS_ORIGIN:-*}
MODEL_DIR: /app/models
depends_on:
cube:
condition: service_healthy