-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (47 loc) · 1.18 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
services:
python:
profiles: ["python"]
build: src/python
volumes:
- ./src/python/:/src/python/
- modelcache:/modelcache
ports:
- "50051:50051"
shm_size: "8gb"
environment:
- "MODEL=${MODEL}"
stdin_open: true
tty: true
frontend:
build: src/frontend
volumes:
- ./src/frontend/:/app/
- node_modules:/app/node_modules
ports:
- "5173:5173"
frontend-singlefile-build:
profiles: ["frontend-singlefile-build"]
build: src/frontend
volumes:
- ./src/frontend/:/app/
- ./src/python/static/index.html:/app/singlefile_build/index.html
- node_modules:/app/node_modules
command: npm run build:singlefile
protoc:
profiles: ["protoc"]
build: src/protos
volumes:
- ./src/protos/protoc_cmd.sh:/src/workdir/protoc_cmd.sh
- ./src/protos/src:/src/workdir/src
- ./src/python/proto:/src/python/proto
- ./src/frontend/src/lib/proto:/src/frontend/src/lib/proto
proxy:
image: envoyproxy/envoy:v1.29.0
ports:
- "5555:5555"
volumes:
- ./src/proxy/envoy.yaml:/etc/envoy/envoy.yaml
- ./src/proxy/logs:/logs
volumes:
node_modules:
modelcache: