优化文档检测为接口

This commit is contained in:
2024-08-28 17:14:43 +08:00
parent 06b637544a
commit a427ad01b9
4 changed files with 77 additions and 3 deletions

View File

@@ -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: