Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

docker-compose.yml 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. include:
  2. - ./docker-compose-base.yml
  3. # To ensure that the container processes the locally modified `service_conf.yaml.template` instead of the one included in its image, you need to mount the local `service_conf.yaml.template` to the container.
  4. services:
  5. ragflow:
  6. depends_on:
  7. mysql:
  8. condition: service_healthy
  9. image: ${RAGFLOW_IMAGE}
  10. # example to setup MCP server
  11. # command:
  12. # - --enable-mcpserver
  13. # - --mcp-host=0.0.0.0
  14. # - --mcp-port=9382
  15. # - --mcp-base-url=http://127.0.0.1:9380
  16. # - --mcp-script-path=/ragflow/mcp/server/server.py
  17. # - --mcp-mode=self-host
  18. # - --mcp--host-api-key="ragflow-xxxxxxx"
  19. container_name: ragflow-server
  20. ports:
  21. - ${SVR_HTTP_PORT}:9380
  22. - 80:80
  23. - 443:443
  24. - 5678:5678
  25. - 5679:5679
  26. - 9382:9382 # entry for MCP (host_port:docker_port). The docker_port should match with the value you set for `mcp-port` above
  27. volumes:
  28. - ./ragflow-logs:/ragflow/logs
  29. - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  30. - ./nginx/proxy.conf:/etc/nginx/proxy.conf
  31. - ./nginx/nginx.conf:/etc/nginx/nginx.conf
  32. - ../history_data_agent:/ragflow/history_data_agent
  33. - ./service_conf.yaml.template:/ragflow/conf/service_conf.yaml.template
  34. env_file: .env
  35. environment:
  36. - TZ=${TIMEZONE}
  37. - HF_ENDPOINT=${HF_ENDPOINT}
  38. - MACOS=${MACOS}
  39. networks:
  40. - ragflow
  41. restart: on-failure
  42. # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  43. # If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container.
  44. extra_hosts:
  45. - "host.docker.internal:host-gateway"
  46. # executor:
  47. # depends_on:
  48. # mysql:
  49. # condition: service_healthy
  50. # image: ${RAGFLOW_IMAGE}
  51. # container_name: ragflow-executor
  52. # volumes:
  53. # - ./ragflow-logs:/ragflow/logs
  54. # - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  55. # env_file: .env
  56. # environment:
  57. # - TZ=${TIMEZONE}
  58. # - HF_ENDPOINT=${HF_ENDPOINT}
  59. # - MACOS=${MACOS}
  60. # entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3"
  61. # networks:
  62. # - ragflow
  63. # restart: on-failure
  64. # # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  65. # # If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container.
  66. # extra_hosts:
  67. # - "host.docker.internal:host-gateway"