選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

docker-compose.yml 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 configuration to set up an 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-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  19. # Optional transport flags for MCP (customize if needed).
  20. # Host mode need to combined with --no-transport-streamable-http-enabled flag, namely, host+streamable-http is not supported yet.
  21. # The following are enabled by default unless explicitly disabled with --no-<flag>.
  22. # - --no-transport-sse-enabled # Disable legacy SSE endpoints (/sse and /messages/)
  23. # - --no-transport-streamable-http-enabled # Disable Streamable HTTP transport (/mcp endpoint)
  24. # - --no-json-response # Disable JSON response mode in Streamable HTTP transport (instead of SSE over HTTP)
  25. container_name: ragflow-server
  26. ports:
  27. - ${SVR_HTTP_PORT}:9380
  28. - 80:80
  29. - 443:443
  30. - 5678:5678
  31. - 5679:5679
  32. - 9382:9382 # entry for MCP (host_port:docker_port). The docker_port must match the value you set for `mcp-port` above.
  33. volumes:
  34. - ./ragflow-logs:/ragflow/logs
  35. - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  36. - ./nginx/proxy.conf:/etc/nginx/proxy.conf
  37. - ./nginx/nginx.conf:/etc/nginx/nginx.conf
  38. - ../history_data_agent:/ragflow/history_data_agent
  39. - ./service_conf.yaml.template:/ragflow/conf/service_conf.yaml.template
  40. - ./entrypoint.sh:/ragflow/entrypoint.sh
  41. env_file: .env
  42. environment:
  43. - TZ=${TIMEZONE}
  44. - HF_ENDPOINT=${HF_ENDPOINT-}
  45. - MACOS=${MACOS-}
  46. networks:
  47. - ragflow
  48. restart: on-failure
  49. # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  50. # If you use Docker Desktop, the --add-host flag is optional. This flag ensures that the host's internal IP is exposed to the Prometheus container.
  51. extra_hosts:
  52. - "host.docker.internal:host-gateway"
  53. # executor:
  54. # depends_on:
  55. # mysql:
  56. # condition: service_healthy
  57. # image: ${RAGFLOW_IMAGE}
  58. # container_name: ragflow-executor
  59. # volumes:
  60. # - ./ragflow-logs:/ragflow/logs
  61. # - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  62. # env_file: .env
  63. # environment:
  64. # - TZ=${TIMEZONE}
  65. # - HF_ENDPOINT=${HF_ENDPOINT}
  66. # - MACOS=${MACOS}
  67. # entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3"
  68. # networks:
  69. # - ragflow
  70. # restart: on-failure
  71. # # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  72. # # 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.
  73. # extra_hosts:
  74. # - "host.docker.internal:host-gateway"