-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
178 lines (159 loc) · 4.63 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
version: '3.9'
services:
flow-pdf-dev:
build:
context: ./src/flow_pdf
dockerfile: Dockerfile_dev
container_name: flow-pdf-dev
# restart: unless-stopped
volumes:
- '${INPUT_PATH}:/workspace/flow_pdf/data/input'
- '${LAYOUT_PARSER_OUTPUT_PATH}:/workspace/flow_pdf/data/layout-parser-output'
- '${FLOWPDF_OUTPUT_PATH}:/workspace/flow_pdf/data/flow_pdf_output'
- './src/flow_pdf:/workspace/flow_pdf'
- './vsc_extensions/flow_pdf:/root/.vscode-server/extensions'
ports:
- '8080:8080'
stdin_open: true
tty: true
flow-pdf-fe-dev:
build:
context: ./src/fe
dockerfile: Dockerfile_dev
container_name: flow-pdf-fe-dev
volumes:
- './src/fe:/workspace/fe'
- './vsc_extensions/fe:/root/.vscode-server/extensions'
ports:
- '5173:5173'
stdin_open: true
tty: true
deploy:
replicas: ${ENABLE_FE}
layout-parser-dev:
build:
context: ./src/layout-parser
dockerfile: Dockerfile
container_name: layout-parser-dev
# restart: unless-stopped
volumes:
- '${INPUT_PATH}:/workspace/layout-parser/data/input'
- '${LAYOUT_PARSER_OUTPUT_PATH}:/workspace/layout-parser/data/layout-parser-output'
- './src/layout-parser:/workspace/layout-parser'
- './vsc_extensions/layout-parser:/root/.vscode-server/extensions'
deploy:
replicas: ${ENABLE_LAYOUT_PARSER}
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
stdin_open: true
tty: true
nougat-demo-dev:
build:
context: ./experiment/nougat-demo
dockerfile: Dockerfile
container_name: nougat-demo-dev
# restart: unless-stopped
volumes:
- '${INPUT_PATH}:/workspace/nougat-demo/data/input'
- '${NOUGAT_OUTPUT_PATH}:/workspace/nougat-demo/data/output'
# - '${FLOWPDF_OUTPUT_PATH}:/workspace/nougat-demo/data/nougat-demo_output'
- ./experiment/nougat-demo:/workspace/nougat-demo
- './vsc_extensions/nougat-demo:/root/.vscode-server/extensions'
ports:
- '8503:8503'
stdin_open: true
tty: true
deploy:
replicas: ${ENABLE_EXP_NOUGAT}
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
nougat-dev:
build:
context: ./src/nougat
dockerfile: Dockerfile_dev
container_name: nougat-dev
# restart: unless-stopped
volumes:
# - '${INPUT_PATH}:/workspace/nougat/data/input'
# - '${NOUGAT_OUTPUT_PATH}:/workspace/nougat/data/output'
# - '${FLOWPDF_OUTPUT_PATH}:/workspace/nougat-demo/data/nougat-demo_output'
- ./src/nougat:/workspace/nougat
- './vsc_extensions/nougat:/root/.vscode-server/extensions'
ports:
- '8503:8503'
stdin_open: true
tty: true
deploy:
replicas: ${ENABLE_NOUGAT}
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
fc-local-dev-dev:
build:
context: ./src/fc-local-dev
dockerfile: Dockerfile_dev
container_name: fc-local-dev-dev
# restart: unless-stopped
volumes:
- './src/fc-local-dev:/workspace/fc-local-dev'
- './vsc_extensions/fc-local-dev:/root/.vscode-server/extensions'
- './data/local-oss:/data'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
stdin_open: true
tty: true
casdoor:
image: registry.cn-hangzhou.aliyuncs.com/117503445-mirror/casdoor
# image: casbin/casdoor@sha256:466a495dd6bfee08caf3d42249722139f41ac4bee9ef708b9294bfab4e0e7f69
ports:
- 18001:18001
volumes:
- ./src/casdoor/app.conf:/conf/app.conf
depends_on:
- db
deploy:
restart_policy:
condition: on-failure
db:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_ROOT_HOST=%
- MYSQL_DATABASE=casdoor
volumes:
- ./data/mysql:/var/lib/mysql
cap_add:
- SYS_NICE # CAP_SYS_NICE to avoid 'mbind: Operation not permitted'
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot", "-ppass"]
interval: 5s
timeout: 5s
retries: 20
ports:
- 3306:3306
dbgate:
image: dbgate/dbgate
ports:
- 18002:3000
# volumes:
# - dbgate-data:/root/.dbgate
environment:
CONNECTIONS: con1
LABEL_con1: MySql
SERVER_con1: db
USER_con1: root
PASSWORD_con1: 123456
PORT_con1: 3306
ENGINE_con1: mysql@dbgate-plugin-mysql
depends_on:
- db