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

docker-compose.yml 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. container_name: ragflow-server
  18. ports:
  19. - ${SVR_HTTP_PORT}:9380
  20. - 80:80
  21. - 443:443
  22. - 5678:5678
  23. - 5679:5679
  24. - 9382:9382 # entry for MCP (host_port:docker_port). The docker_port should match with the value you set for `mcp-port` above
  25. volumes:
  26. - ./ragflow-logs:/ragflow/logs
  27. - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  28. - ./nginx/proxy.conf:/etc/nginx/proxy.conf
  29. - ./nginx/nginx.conf:/etc/nginx/nginx.conf
  30. - ../history_data_agent:/ragflow/history_data_agent
  31. - ./service_conf.yaml.template:/ragflow/conf/service_conf.yaml.template
  32. env_file: .env
  33. environment:
  34. - TZ=${TIMEZONE}
  35. - HF_ENDPOINT=${HF_ENDPOINT}
  36. - MACOS=${MACOS}
  37. networks:
  38. - ragflow
  39. restart: on-failure
  40. # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  41. # 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.
  42. extra_hosts:
  43. - "host.docker.internal:host-gateway"
  44. # executor:
  45. # depends_on:
  46. # mysql:
  47. # condition: service_healthy
  48. # image: ${RAGFLOW_IMAGE}
  49. # container_name: ragflow-executor
  50. # volumes:
  51. # - ./ragflow-logs:/ragflow/logs
  52. # - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  53. # env_file: .env
  54. # environment:
  55. # - TZ=${TIMEZONE}
  56. # - HF_ENDPOINT=${HF_ENDPOINT}
  57. # - MACOS=${MACOS}
  58. # entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3"
  59. # networks:
  60. # - ragflow
  61. # restart: on-failure
  62. # # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  63. # # 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.
  64. # extra_hosts:
  65. # - "host.docker.internal:host-gateway"