middleware.env.example 3.0 KB

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