You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-compose.yml 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. include:
  2. - ./docker-compose-base.yml
  3. services:
  4. ragflow:
  5. depends_on:
  6. mysql:
  7. condition: service_healthy
  8. image: ${RAGFLOW_IMAGE}
  9. container_name: ragflow-server
  10. ports:
  11. - ${SVR_HTTP_PORT}:9380
  12. - 80:80
  13. - 443:443
  14. volumes:
  15. - ./ragflow-logs:/ragflow/logs
  16. - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  17. - ./nginx/proxy.conf:/etc/nginx/proxy.conf
  18. - ./nginx/nginx.conf:/etc/nginx/nginx.conf
  19. env_file: .env
  20. environment:
  21. - TZ=${TIMEZONE}
  22. - HF_ENDPOINT=${HF_ENDPOINT}
  23. - MACOS=${MACOS}
  24. networks:
  25. - ragflow
  26. restart: on-failure
  27. # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  28. # 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.
  29. extra_hosts:
  30. - "host.docker.internal:host-gateway"
  31. # executor:
  32. # depends_on:
  33. # mysql:
  34. # condition: service_healthy
  35. # image: ${RAGFLOW_IMAGE}
  36. # container_name: ragflow-executor
  37. # volumes:
  38. # - ./ragflow-logs:/ragflow/logs
  39. # - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  40. # env_file: .env
  41. # environment:
  42. # - TZ=${TIMEZONE}
  43. # - HF_ENDPOINT=${HF_ENDPOINT}
  44. # - MACOS=${MACOS}
  45. # entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3"
  46. # networks:
  47. # - ragflow
  48. # restart: on-failure
  49. # # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
  50. # # 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.
  51. # extra_hosts:
  52. # - "host.docker.internal:host-gateway"