chore: ed ports
This commit is contained in:
+1
-1
@@ -11,6 +11,6 @@ COPY task_queue.py .
|
||||
COPY resident_worker.py .
|
||||
COPY config ./config
|
||||
|
||||
EXPOSE 8071
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["python", "api_server.py"]
|
||||
|
||||
+2
-2
@@ -150,11 +150,11 @@ if __name__ == "__main__":
|
||||
print("="*60)
|
||||
print("皮肤分析 API 服务")
|
||||
print("="*60)
|
||||
print("监听地址:http://0.0.0.0:8071")
|
||||
print("监听地址:http://0.0.0.0:8000")
|
||||
print("提交接口:POST /api/v1/analysis/submit")
|
||||
print("状态查询:GET /api/v1/analysis/status/{task_id}")
|
||||
print("健康检查:GET /health")
|
||||
print("="*60)
|
||||
print()
|
||||
|
||||
uvicorn.run(app, host="0.0.0.0", port=8071)
|
||||
uvicorn.run(app, host="0.0.0.0", port=8000)
|
||||
|
||||
+2
-2
@@ -3,8 +3,8 @@ services:
|
||||
build: /data/www/py-skin-analysis-worker
|
||||
image: analysis-py:latest
|
||||
working_dir: /app
|
||||
expose:
|
||||
- "8071"
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- /data/www/py-skin-analysis-worker:/app
|
||||
- /data/analysis:/data/analysis
|
||||
|
||||
Reference in New Issue
Block a user