-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
57 lines (53 loc) · 1.18 KB
/
docker-compose.yaml
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
version: '3.8'
services:
grobid:
build: .
container_name: grobid
ports:
- "8070:8070"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
fastchat:
build: ./FastChat
container_name: FastChat
ports:
- "8030:8030"
volumes:
- ./FastChat:/FastChat
command: |
bash -c "echo 'Current working directory: $$(pwd)' &&
ls -la /FastChat &&
pip3 install --upgrade pip &&
pip3 install -e . &&
chmod 777 start.sh &&
./start.sh"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
backend:
build: ./backend
container_name: backend
ports:
- "8000:8000"
volumes:
- ./backend:/backend
- ./FastChat:/FastChat
tty: true
frontend:
build: ./frontend
container_name: frontend
tty: true
ports:
- "3000:3000"
volumes:
- ./frontend:/frontend
- /frontend/node_modules/