enhance: sandbox-docker-compose

This commit is contained in:
Yeuoly 2024-03-13 17:46:42 +08:00
parent 0c709afe5c
commit ef700b2688
No known key found for this signature in database
GPG Key ID: A66E7E320FB19F61
3 changed files with 8 additions and 2 deletions

View File

@ -134,5 +134,5 @@ SSRF_PROXY_HTTPS_URL=
BATCH_UPLOAD_LIMIT=10
# CODE EXECUTION CONFIGURATION
CODE_EXECUTION_ENDPOINT=
CODE_EXECUTION_API_KEY=
CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
CODE_EXECUTION_API_KEY=dify-sandbox

View File

@ -55,9 +55,12 @@ services:
sandbox:
image: langgenius/dify-sandbox:latest
restart: always
cap_add:
- SYS_ADMIN
environment:
# The DifySandbox configurations
API_KEY: dify-sandbox
GIN_MODE: 'release'
ports:
- "8194:8194"

View File

@ -293,9 +293,12 @@ services:
sandbox:
image: langgenius/dify-sandbox:latest
restart: always
cap_add:
- SYS_ADMIN
environment:
# The DifySandbox configurations
API_KEY: dify-sandbox
GIN_MODE: release
ports:
- "8194:8194"