docker-compose.middleware.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. version: '3.1'
  2. services:
  3. # The postgres database.
  4. db:
  5. image: postgres:15-alpine
  6. restart: always
  7. environment:
  8. # The password for the default postgres user.
  9. POSTGRES_PASSWORD: difyai123456
  10. # The name of the default postgres database.
  11. POSTGRES_DB: dify
  12. # postgres data directory
  13. PGDATA: /var/lib/postgresql/data/pgdata
  14. volumes:
  15. - ./volumes/db/data:/var/lib/postgresql/data
  16. ports:
  17. - "5432:5432"
  18. # The redis cache.
  19. redis:
  20. image: redis:6-alpine
  21. restart: always
  22. volumes:
  23. # Mount the redis data directory to the container.
  24. - ./volumes/redis/data:/data
  25. # Set the redis password when startup redis server.
  26. command: redis-server --requirepass difyai123456
  27. ports:
  28. - "6379:6379"
  29. # The Weaviate vector store.
  30. weaviate:
  31. image: semitechnologies/weaviate:1.18.4
  32. restart: always
  33. volumes:
  34. # Mount the Weaviate data directory to the container.
  35. - ./volumes/weaviate:/var/lib/weaviate
  36. environment:
  37. # The Weaviate configurations
  38. # You can refer to the [Weaviate](https://weaviate.io/developers/weaviate/config-refs/env-vars) documentation for more information.
  39. QUERY_DEFAULTS_LIMIT: 25
  40. AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'false'
  41. PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
  42. DEFAULT_VECTORIZER_MODULE: 'none'
  43. CLUSTER_HOSTNAME: 'node1'
  44. AUTHENTICATION_APIKEY_ENABLED: 'true'
  45. AUTHENTICATION_APIKEY_ALLOWED_KEYS: 'WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih'
  46. AUTHENTICATION_APIKEY_USERS: 'hello@dify.ai'
  47. AUTHORIZATION_ADMINLIST_ENABLED: 'true'
  48. AUTHORIZATION_ADMINLIST_USERS: 'hello@dify.ai'
  49. ports:
  50. - "8080:8080"