| 
									
										
										
										
											2024-06-28 17:37:52 +08:00
										 |  |  | # ------------------------------ | 
					
						
							|  |  |  | # Environment Variables for db Service | 
					
						
							|  |  |  | # ------------------------------ | 
					
						
							|  |  |  | PGUSER=postgres | 
					
						
							|  |  |  | # The password for the default postgres user. | 
					
						
							|  |  |  | POSTGRES_PASSWORD=difyai123456 | 
					
						
							|  |  |  | # The name of the default postgres database. | 
					
						
							|  |  |  | POSTGRES_DB=dify | 
					
						
							|  |  |  | # postgres data directory | 
					
						
							|  |  |  | PGDATA=/var/lib/postgresql/data/pgdata | 
					
						
							| 
									
										
										
										
											2024-10-24 14:27:53 +08:00
										 |  |  | PGDATA_HOST_VOLUME=./volumes/db/data | 
					
						
							| 
									
										
										
										
											2024-06-28 17:37:52 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-08 16:25:23 +07:00
										 |  |  | # Maximum number of connections to the database | 
					
						
							|  |  |  | # Default is 100 | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Reference: https://www.postgresql.org/docs/current/runtime-config-connection.html#GUC-MAX-CONNECTIONS | 
					
						
							|  |  |  | POSTGRES_MAX_CONNECTIONS=100 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Sets the amount of shared memory used for postgres's shared buffers. | 
					
						
							|  |  |  | # Default is 128MB | 
					
						
							|  |  |  | # Recommended value: 25% of available memory | 
					
						
							|  |  |  | # Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-SHARED-BUFFERS | 
					
						
							|  |  |  | POSTGRES_SHARED_BUFFERS=128MB | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Sets the amount of memory used by each database worker for working space. | 
					
						
							|  |  |  | # Default is 4MB | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-WORK-MEM | 
					
						
							|  |  |  | POSTGRES_WORK_MEM=4MB | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Sets the amount of memory reserved for maintenance activities. | 
					
						
							|  |  |  | # Default is 64MB | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-MAINTENANCE-WORK-MEM | 
					
						
							|  |  |  | POSTGRES_MAINTENANCE_WORK_MEM=64MB | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Sets the planner's assumption about the effective cache size. | 
					
						
							|  |  |  | # Default is 4096MB | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Reference: https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-EFFECTIVE-CACHE-SIZE | 
					
						
							|  |  |  | POSTGRES_EFFECTIVE_CACHE_SIZE=4096MB | 
					
						
							| 
									
										
										
										
											2024-06-28 17:37:52 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-24 14:27:53 +08:00
										 |  |  | # ----------------------------- | 
					
						
							|  |  |  | # Environment Variables for redis Service | 
					
						
							|  |  |  | # ----------------------------- | 
					
						
							| 
									
										
										
										
											2024-11-20 20:10:51 +08:00
										 |  |  | REDIS_HOST_VOLUME=./volumes/redis/data | 
					
						
							|  |  |  | REDIS_PASSWORD=difyai123456 | 
					
						
							| 
									
										
										
										
											2024-10-24 14:27:53 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-28 17:37:52 +08:00
										 |  |  | # ------------------------------ | 
					
						
							|  |  |  | # Environment Variables for sandbox Service | 
					
						
							| 
									
										
										
										
											2024-11-20 20:10:51 +08:00
										 |  |  | # ------------------------------ | 
					
						
							| 
									
										
										
										
											2024-07-01 01:11:33 +08:00
										 |  |  | SANDBOX_API_KEY=dify-sandbox | 
					
						
							|  |  |  | SANDBOX_GIN_MODE=release | 
					
						
							|  |  |  | SANDBOX_WORKER_TIMEOUT=15 | 
					
						
							|  |  |  | SANDBOX_ENABLE_NETWORK=true | 
					
						
							|  |  |  | SANDBOX_HTTP_PROXY=http://ssrf_proxy:3128 | 
					
						
							|  |  |  | SANDBOX_HTTPS_PROXY=http://ssrf_proxy:3128 | 
					
						
							| 
									
										
										
										
											2024-06-28 17:37:52 +08:00
										 |  |  | SANDBOX_PORT=8194 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-01 01:11:33 +08:00
										 |  |  | # ------------------------------ | 
					
						
							|  |  |  | # Environment Variables for ssrf_proxy Service | 
					
						
							|  |  |  | # ------------------------------ | 
					
						
							|  |  |  | SSRF_HTTP_PORT=3128 | 
					
						
							|  |  |  | SSRF_COREDUMP_DIR=/var/spool/squid | 
					
						
							|  |  |  | SSRF_REVERSE_PROXY_PORT=8194 | 
					
						
							|  |  |  | SSRF_SANDBOX_HOST=sandbox | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-28 17:37:52 +08:00
										 |  |  | # ------------------------------ | 
					
						
							|  |  |  | # Environment Variables for weaviate Service | 
					
						
							|  |  |  | # ------------------------------ | 
					
						
							| 
									
										
										
										
											2024-07-01 01:11:33 +08:00
										 |  |  | WEAVIATE_QUERY_DEFAULTS_LIMIT=25 | 
					
						
							|  |  |  | WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true | 
					
						
							|  |  |  | WEAVIATE_DEFAULT_VECTORIZER_MODULE=none | 
					
						
							|  |  |  | WEAVIATE_CLUSTER_HOSTNAME=node1 | 
					
						
							|  |  |  | WEAVIATE_AUTHENTICATION_APIKEY_ENABLED=true | 
					
						
							|  |  |  | WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih | 
					
						
							|  |  |  | WEAVIATE_AUTHENTICATION_APIKEY_USERS=hello@dify.ai | 
					
						
							|  |  |  | WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED=true | 
					
						
							|  |  |  | WEAVIATE_AUTHORIZATION_ADMINLIST_USERS=hello@dify.ai | 
					
						
							| 
									
										
										
										
											2024-10-24 14:27:53 +08:00
										 |  |  | WEAVIATE_HOST_VOLUME=./volumes/weaviate | 
					
						
							| 
									
										
										
										
											2024-06-30 10:31:31 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ------------------------------ | 
					
						
							|  |  |  | # Docker Compose Service Expose Host Port Configurations | 
					
						
							|  |  |  | # ------------------------------ | 
					
						
							|  |  |  | EXPOSE_POSTGRES_PORT=5432 | 
					
						
							|  |  |  | EXPOSE_REDIS_PORT=6379 | 
					
						
							|  |  |  | EXPOSE_SANDBOX_PORT=8194 | 
					
						
							|  |  |  | EXPOSE_SSRF_PROXY_PORT=3128 | 
					
						
							|  |  |  | EXPOSE_WEAVIATE_PORT=8080 | 
					
						
							| 
									
										
										
										
											2025-02-17 17:05:13 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ------------------------------ | 
					
						
							|  |  |  | # Plugin Daemon Configuration | 
					
						
							|  |  |  | # ------------------------------ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DB_PLUGIN_DATABASE=dify_plugin | 
					
						
							|  |  |  | EXPOSE_PLUGIN_DAEMON_PORT=5002 | 
					
						
							|  |  |  | PLUGIN_DAEMON_PORT=5002 | 
					
						
							|  |  |  | PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi | 
					
						
							|  |  |  | PLUGIN_DAEMON_URL=http://host.docker.internal:5002 | 
					
						
							|  |  |  | PLUGIN_MAX_PACKAGE_SIZE=52428800 | 
					
						
							|  |  |  | PLUGIN_PPROF_ENABLED=false | 
					
						
							|  |  |  | PLUGIN_WORKING_PATH=/app/storage/cwd | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ENDPOINT_URL_TEMPLATE=http://localhost:5002/e/{hook_id} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PLUGIN_DEBUGGING_PORT=5003 | 
					
						
							|  |  |  | PLUGIN_DEBUGGING_HOST=0.0.0.0 | 
					
						
							|  |  |  | EXPOSE_PLUGIN_DEBUGGING_HOST=localhost | 
					
						
							|  |  |  | EXPOSE_PLUGIN_DEBUGGING_PORT=5003 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1 | 
					
						
							|  |  |  | PLUGIN_DIFY_INNER_API_URL=http://api:5001 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | MARKETPLACE_ENABLED=true | 
					
						
							|  |  |  | MARKETPLACE_API_URL=https://marketplace.dify.ai | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-09 11:45:19 +09:00
										 |  |  | FORCE_VERIFYING_SIGNATURE=true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PLUGIN_PYTHON_ENV_INIT_TIMEOUT=120 | 
					
						
							|  |  |  | PLUGIN_MAX_EXECUTION_TIMEOUT=600 |