Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat:Add host volume env variables for postgres, redis and weaviate (#9761)
Orion169f7440ac98
diff --git a/docker/docker-compose.middleware.yaml b/docker/docker-compose.middleware.yamlindex 0c9edd2b552..31624285b1d 100644--- a/docker/docker-compose.middleware.yaml+++ b/docker/docker-compose.middleware.yaml@@ -16,7 +16,7 @@ services:-c 'maintenance_work_mem=${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}'-c 'effective_cache_size=${POSTGRES_EFFECTIVE_CACHE_SIZE:-4096MB}'volumes:- - ./volumes/db/data:/var/lib/postgresql/data+ - ${PGDATA_HOST_VOLUME:-./volumes/db/data}:/var/lib/postgresql/dataports:- "${EXPOSE_POSTGRES_PORT:-5432}:5432"healthcheck:@@ -31,7 +31,7 @@ services:restart: alwaysvolumes:# Mount the redis data directory to the container.- - ./volumes/redis/data:/data+ - ${REDIS_HOST_VOLUME:-./volumes/redis/data}:/data# Set the redis password when startup redis server.command: redis-server --requirepass difyai123456ports:@@ -94,7 +94,7 @@ services:restart: alwaysvolumes:# Mount the Weaviate data directory to the container.- - ./volumes/weaviate:/var/lib/weaviate+ - ${WEAVIATE_HOST_VOLUME:-./volumes/weaviate}:/var/lib/weaviateenv_file:- ./middleware.envenvironment:diff --git a/docker/middleware.env.example b/docker/middleware.env.exampleindex 04d0fb5ed30..17ac8195277 100644--- a/docker/middleware.env.example+++ b/docker/middleware.env.example@@ -8,6 +8,7 @@ POSTGRES_PASSWORD=difyai123456POSTGRES_DB=dify# postgres data directoryPGDATA=/var/lib/postgresql/data/pgdata+PGDATA_HOST_VOLUME=./volumes/db/data# Maximum number of connections to the database# Default is 100@@ -39,6 +40,11 @@ POSTGRES_MAINTENANCE_WORK_MEM=64MB# Reference: https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-EFFECTIVE-CACHE-SIZEPOSTGRES_EFFECTIVE_CACHE_SIZE=4096MB+# -----------------------------+# Environment Variables for redis Service+REDIS_HOST_VOLUME=./volumes/redis/data+# -----------------------------+# ------------------------------# Environment Variables for sandbox ServiceSANDBOX_API_KEY=dify-sandbox@@ -70,6 +76,7 @@ WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkihWEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED=true+WEAVIATE_HOST_VOLUME=./volumes/weaviate# ------------------------------# Docker Compose Service Expose Host Port Configurations