您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

docker-compose-macos.yml 1.8KB

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