Skip to content

armgit / dify

Public Imported from GitHub
0

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.

fix(docker): mount shared storage volume in api_websocket (#39424)

David Park20b9278ca3f5
diff --git a/docker/docker-compose-template.yaml b/docker/docker-compose-template.yaml
index 89f95687e51..bb4a3c76efd 100644
--- a/docker/docker-compose-template.yaml
+++ b/docker/docker-compose-template.yaml
@@ -281,6 +281,8 @@ services:
SERVER_WORKER_CONNECTIONS: ${API_WEBSOCKET_WORKER_CONNECTIONS:-1000}
GUNICORN_TIMEOUT: ${API_WEBSOCKET_GUNICORN_TIMEOUT:-360}
depends_on:
+ init_permissions:
+ condition: service_completed_successfully
db_postgres:
condition: service_healthy
required: false
@@ -289,6 +291,9 @@ services:
required: false
redis:
condition: service_started
+ volumes:
+ # Mount the storage directory to the container, for storing user files.
+ - ./volumes/app/storage:/app/api/storage
networks:
- ssrf_proxy_network
- default
diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml
index 15f7ba73547..301c03c45ac 100644
--- a/docker/docker-compose.yaml
+++ b/docker/docker-compose.yaml
@@ -287,6 +287,8 @@ services:
SERVER_WORKER_CONNECTIONS: ${API_WEBSOCKET_WORKER_CONNECTIONS:-1000}
GUNICORN_TIMEOUT: ${API_WEBSOCKET_GUNICORN_TIMEOUT:-360}
depends_on:
+ init_permissions:
+ condition: service_completed_successfully
db_postgres:
condition: service_healthy
required: false
@@ -295,6 +297,9 @@ services:
required: false
redis:
condition: service_started
+ volumes:
+ # Mount the storage directory to the container, for storing user files.
+ - ./volumes/app/storage:/app/api/storage
networks:
- ssrf_proxy_network
- default