middleware.env.example 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. # -----------------------------
  40. REDIS_HOST_VOLUME=./volumes/redis/data
  41. REDIS_PASSWORD=difyai123456
  42. # ------------------------------
  43. # Environment Variables for sandbox Service
  44. # ------------------------------
  45. SANDBOX_API_KEY=dify-sandbox
  46. SANDBOX_GIN_MODE=release
  47. SANDBOX_WORKER_TIMEOUT=15
  48. SANDBOX_ENABLE_NETWORK=true
  49. SANDBOX_HTTP_PROXY=http://ssrf_proxy:3128
  50. SANDBOX_HTTPS_PROXY=http://ssrf_proxy:3128
  51. SANDBOX_PORT=8194
  52. # ------------------------------
  53. # Environment Variables for ssrf_proxy Service
  54. # ------------------------------
  55. SSRF_HTTP_PORT=3128
  56. SSRF_COREDUMP_DIR=/var/spool/squid
  57. SSRF_REVERSE_PROXY_PORT=8194
  58. SSRF_SANDBOX_HOST=sandbox
  59. # ------------------------------
  60. # Environment Variables for weaviate Service
  61. # ------------------------------
  62. WEAVIATE_QUERY_DEFAULTS_LIMIT=25
  63. WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true
  64. WEAVIATE_DEFAULT_VECTORIZER_MODULE=none
  65. WEAVIATE_CLUSTER_HOSTNAME=node1
  66. WEAVIATE_AUTHENTICATION_APIKEY_ENABLED=true
  67. WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  68. WEAVIATE_AUTHENTICATION_APIKEY_USERS=hello@dify.ai
  69. WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED=true
  70. WEAVIATE_AUTHORIZATION_ADMINLIST_USERS=hello@dify.ai
  71. WEAVIATE_HOST_VOLUME=./volumes/weaviate
  72. # ------------------------------
  73. # Docker Compose Service Expose Host Port Configurations
  74. # ------------------------------
  75. EXPOSE_POSTGRES_PORT=5432
  76. EXPOSE_REDIS_PORT=6379
  77. EXPOSE_SANDBOX_PORT=8194
  78. EXPOSE_SSRF_PROXY_PORT=3128
  79. EXPOSE_WEAVIATE_PORT=8080