middleware.env.example 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # ------------------------------
  2. # Environment Variables for db Service
  3. # ------------------------------
  4. PGUSER=postgres
  5. # The password for the default postgres user.
  6. POSTGRES_PASSWORD=difyai123456
  7. # The name of the default postgres database.
  8. POSTGRES_DB=dify
  9. # postgres data directory
  10. PGDATA=/var/lib/postgresql/data/pgdata
  11. # Maximum number of connections to the database
  12. # Default is 100
  13. #
  14. # Reference: https://www.postgresql.org/docs/current/runtime-config-connection.html#GUC-MAX-CONNECTIONS
  15. POSTGRES_MAX_CONNECTIONS=100
  16. # Sets the amount of shared memory used for postgres's shared buffers.
  17. # Default is 128MB
  18. # Recommended value: 25% of available memory
  19. # Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-SHARED-BUFFERS
  20. POSTGRES_SHARED_BUFFERS=128MB
  21. # Sets the amount of memory used by each database worker for working space.
  22. # Default is 4MB
  23. #
  24. # Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-WORK-MEM
  25. POSTGRES_WORK_MEM=4MB
  26. # Sets the amount of memory reserved for maintenance activities.
  27. # Default is 64MB
  28. #
  29. # Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-MAINTENANCE-WORK-MEM
  30. POSTGRES_MAINTENANCE_WORK_MEM=64MB
  31. # Sets the planner's assumption about the effective cache size.
  32. # Default is 4096MB
  33. #
  34. # Reference: https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-EFFECTIVE-CACHE-SIZE
  35. POSTGRES_EFFECTIVE_CACHE_SIZE=4096MB
  36. # ------------------------------
  37. # Environment Variables for sandbox Service
  38. SANDBOX_API_KEY=dify-sandbox
  39. SANDBOX_GIN_MODE=release
  40. SANDBOX_WORKER_TIMEOUT=15
  41. SANDBOX_ENABLE_NETWORK=true
  42. SANDBOX_HTTP_PROXY=http://ssrf_proxy:3128
  43. SANDBOX_HTTPS_PROXY=http://ssrf_proxy:3128
  44. SANDBOX_PORT=8194
  45. # ------------------------------
  46. # ------------------------------
  47. # Environment Variables for ssrf_proxy Service
  48. # ------------------------------
  49. SSRF_HTTP_PORT=3128
  50. SSRF_COREDUMP_DIR=/var/spool/squid
  51. SSRF_REVERSE_PROXY_PORT=8194
  52. SSRF_SANDBOX_HOST=sandbox
  53. # ------------------------------
  54. # Environment Variables for weaviate Service
  55. # ------------------------------
  56. WEAVIATE_QUERY_DEFAULTS_LIMIT=25
  57. WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true
  58. WEAVIATE_DEFAULT_VECTORIZER_MODULE=none
  59. WEAVIATE_CLUSTER_HOSTNAME=node1
  60. WEAVIATE_AUTHENTICATION_APIKEY_ENABLED=true
  61. WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  62. WEAVIATE_AUTHENTICATION_APIKEY_USERS=hello@dify.ai
  63. WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED=true
  64. WEAVIATE_AUTHORIZATION_ADMINLIST_USERS=hello@dify.ai
  65. # ------------------------------
  66. # Docker Compose Service Expose Host Port Configurations
  67. # ------------------------------
  68. EXPOSE_POSTGRES_PORT=5432
  69. EXPOSE_REDIS_PORT=6379
  70. EXPOSE_SANDBOX_PORT=8194
  71. EXPOSE_SSRF_PROXY_PORT=3128
  72. EXPOSE_WEAVIATE_PORT=8080