chore: ed ports

This commit is contained in:
zzw
2026-09-11 14:45:06 +08:00
parent 2f879be4c9
commit e4e53322b7
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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