Unverified Commit 4ecfe1fe authored by Yeuoly's avatar Yeuoly

feat: docker-compose

parent 5fac4f87
...@@ -11,6 +11,9 @@ services: ...@@ -11,6 +11,9 @@ services:
POSTGRES_DB: dify POSTGRES_DB: dify
# postgres data directory # postgres data directory
PGDATA: /var/lib/postgresql/data/pgdata PGDATA: /var/lib/postgresql/data/pgdata
# The sandbox service endpoint.
CODE_EXECUTION_ENDPOINT: "http://sandbox:8194"
CODE_EXECUTION_API_KEY: dify-sandbox
volumes: volumes:
- ./volumes/db/data:/var/lib/postgresql/data - ./volumes/db/data:/var/lib/postgresql/data
ports: ports:
...@@ -51,6 +54,16 @@ services: ...@@ -51,6 +54,16 @@ services:
ports: ports:
- "8080:8080" - "8080:8080"
# The DifySandbox
sandbox:
image: langgenius/dify-sandbox:latest
restart: always
environment:
# The DifySandbox configurations
API_KEY: dify-sandbox
ports:
- "8194:8194"
# Qdrant vector store. # Qdrant vector store.
# uncomment to use qdrant as vector store. # uncomment to use qdrant as vector store.
# (if uncommented, you need to comment out the weaviate service above, # (if uncommented, you need to comment out the weaviate service above,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment