Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

docker-compose.yml 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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-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 must match 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. - ./entrypoint.sh:/ragflow/entrypoint.sh
  35. env_file: .env
  36. environment:
  37. - TZ=${TIMEZONE}
  38. - HF_ENDPOINT=${HF_ENDPOINT}
  39. - MACOS=${MACOS}
  40. networks:
  41. - ragflow
  42. restart: on-failure
  43. # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  44. # 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.
  45. extra_hosts:
  46. - "host.docker.internal:host-gateway"
  47. # executor:
  48. # depends_on:
  49. # mysql:
  50. # condition: service_healthy
  51. # image: ${RAGFLOW_IMAGE}
  52. # container_name: ragflow-executor
  53. # volumes:
  54. # - ./ragflow-logs:/ragflow/logs
  55. # - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  56. # env_file: .env
  57. # environment:
  58. # - TZ=${TIMEZONE}
  59. # - HF_ENDPOINT=${HF_ENDPOINT}
  60. # - MACOS=${MACOS}
  61. # entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3"
  62. # networks:
  63. # - ragflow
  64. # restart: on-failure
  65. # # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  66. # # 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.
  67. # extra_hosts:
  68. # - "host.docker.internal:host-gateway"