1
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
services:
|
||||
# 哪个项目-什么语言-做什么
|
||||
skin-py-analysis:
|
||||
build: /data/www/py-skin-analysis-worker
|
||||
image: analysis-py:latest
|
||||
working_dir: /app
|
||||
expose:
|
||||
- "8071"
|
||||
volumes:
|
||||
- /data/www/py-skin-analysis-worker:/app
|
||||
- /data/analysis:/data/analysis
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
command: python api_server.py
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- default
|
||||
- common-network
|
||||
networks:
|
||||
default:
|
||||
external: true
|
||||
name: skin-network
|
||||
|
||||
common-network:
|
||||
external: true
|
||||
|
||||
# services:
|
||||
# # 皮肤分析 API 服务
|
||||
# skin-api:
|
||||
# build: .
|
||||
# image: skin-analysis:latest
|
||||
# container_name: skin-analysis-api
|
||||
# ports:
|
||||
# - "8071:8071"
|
||||
# volumes:
|
||||
# # 挂载数据目录
|
||||
# - D:/data/analysis:/data/analysis
|
||||
# environment:
|
||||
# - PYTHONUNBUFFERED=1
|
||||
# command: python api_server.py
|
||||
# restart: unless-stopped
|
||||
# deploy:
|
||||
# resources:
|
||||
# reservations:
|
||||
# devices:
|
||||
# - driver: nvidia
|
||||
# count: 1
|
||||
# capabilities: [gpu]
|
||||
Reference in New Issue
Block a user