langgenius / dify-sandbox

A lightweight, fast, and secure code execution environment that supports multiple programming languages
https://docs.dify.ai/development/backend/sandbox
Apache License 2.0
339 stars 71 forks source link

health check #22

Open zhuqingchao opened 1 month ago

zhuqingchao commented 1 month ago

单独部署时需要 health check 接口

Yeuoly commented 1 month ago

you can contribute it if you want, but this is a more convenient way, you can check the health status of TCP port 8194 listening status, both k8s and docker-compose could do it for you.

CocoaML commented 1 month ago

you can contribute it if you want, but this is a more convenient way, you can check the health status of TCP port 8194 listening status, both k8s and docker-compose could do it for you.

I tried to use docker to deploy, went to the directory: ~/dify-sandbox-main/docker/amd64, and then executed: sudo docker build -t dify-sandbox-v1 .

Error: error pulling image configuration: download failed after attempts=6: dial tcp 199.59.148.106:443: i/o timeout,

very strange, I do not know how to solve, looking forward to reply.