-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
71 lines (70 loc) · 1.79 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
71 lines (70 loc) · 1.79 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3.8"
services:
table-backend:
build:
context: ./backend
dockerfile: Dockerfile
image: table-backend:latest
command: uvicorn main:app --host 0.0.0.0 --port 8000 --log-config log.yaml --log-level debug --reload
container_name: table-backend
restart: always
healthcheck:
interval: 1m
timeout: 3s
retries: 3
test: curl localhost:8000/ping
environment:
- TZ=Asia/Shanghai
ports:
- 8000:8000
table-frontend:
build:
context: ./frontend/
dockerfile: Dockerfile
image: table-frontend:latest
container_name: table-frontend
restart: unless-stopped
ports:
- ${PROJECT_PORT:-8080}:8080
healthcheck:
interval: 1m
timeout: 3s
retries: 3
test: curl http://localhost:3000/
environment:
- TZ=Asia/Shanghai
command: npm run ${START_COMMAND:-serve}
grobid-server:
image: lfoppiano/grobid:0.6.2
container_name: grobid-server
restart: always
ports:
- "8074:8070"
- "8075:8071"
volumes:
- ./docker/grobid-server/grobid.properties:/opt/grobid/grobid-home/config/grobid.properties:ro
table-outline-server:
container_name: table-outline-server
build:
context: ./docker/table-outline-server/
dockerfile: Dockerfile
args:
USER_ID: ${USER_ID:-1000}
image: table-outline-server:latest
deploy:
resources:
reservations:
devices:
- capabilities:
- gpu
shm_size: "8gb"
ulimits:
memlock: -1
stack: 67108864
volumes:
- ./docker/table-outline-server/table_outline:/home/appuser/detectron2_repo/projects/table_outline
environment:
- DISPLAY=$DISPLAY
- NVIDIA_VISIBLE_DEVICES=all
ports:
- "9092:9092"