feat: 更新服务地址为 192.168.1.9,修改相关配置以支持局域网访问
This commit is contained in:
+1
-1
@@ -55,6 +55,6 @@ VOLUME ["/app/backend/media", "/app/backend/knowledge", "/app/backend/data.json"
|
||||
EXPOSE 10085 8765
|
||||
|
||||
HEALTHCHECK --interval=15s --timeout=5s --start-period=30s --retries=5 \
|
||||
CMD python -c "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:10085/api/health', timeout=4).status==200 else 1)" || exit 1
|
||||
CMD python -c "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://192.168.1.9:10085/api/health', timeout=4).status==200 else 1)" || exit 1
|
||||
|
||||
CMD ["python", "docker_entry.py"]
|
||||
|
||||
Reference in New Issue
Block a user