-
Notifications
You must be signed in to change notification settings - Fork 169
/
docker-compose.yml
54 lines (51 loc) · 1.29 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
version: "3.11"
services:
generate-openapi-spec:
image: tobiko-api
container_name: generate-openapi-spec
working_dir: /sqlmesh
build:
context: ..
dockerfile: web/Dockerfile.api
command: python web/server/openapi.py
volumes:
- ..:/sqlmesh
app:
image: tobiko-app
container_name: tobiko-app
build:
context: ..
dockerfile: web/Dockerfile.app
command: npm run dev -- --host 0.0.0.0 --port 8001
working_dir: /app
ports:
- 8001:8001
volumes:
- ../web/client:/app
- /app/node_modules
tty: true
networks:
- tobiko-development
depends_on:
- generate-openapi-spec
api:
image: tobiko-api
container_name: tobiko-api
working_dir: /home
build:
context: ..
dockerfile: web/Dockerfile.api
command: python -m uvicorn web.server.app:app --host 0.0.0.0 --port 8000 --reload --reload-dir /sqlmesh/web/server --reload-dir /sqlmesh/sqlmesh --timeout-keep-alive 300 --timeout-graceful-shutdown 1
ports:
- 8000:8000
volumes:
- ..:/sqlmesh
networks:
- tobiko-development
environment:
- PYTHONPATH=/sqlmesh
- PROJECT_PATH=${PROJECT_PATH:-/sqlmesh/examples/sushi}
- UI_MODE=ide
networks:
tobiko-development:
driver: bridge