优化文档检测为接口
This commit is contained in:
@@ -1,13 +1,29 @@
|
||||
x-env:
|
||||
&template
|
||||
image: fcb_photo_review:1.13.7
|
||||
image: fcb_photo_review:1.13.8
|
||||
restart: always
|
||||
|
||||
services:
|
||||
photo_review_1:
|
||||
det_api:
|
||||
<<: *template
|
||||
build:
|
||||
context: .
|
||||
container_name: det_api
|
||||
hostname: det_api
|
||||
volumes:
|
||||
- ./log:/app/log
|
||||
- ./model:/app/model
|
||||
command: [ "det_api.py" ]
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- device_ids: [ "0" ]
|
||||
capabilities: [ "gpu" ]
|
||||
driver: "nvidia"
|
||||
|
||||
photo_review_1:
|
||||
<<: *template
|
||||
container_name: photo_review_1
|
||||
hostname: photo_review_1
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user