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-CN.yml 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. version: '2.2'
  2. services:
  3. es01:
  4. container_name: ragflow-es-01
  5. image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
  6. volumes:
  7. - esdata01:/usr/share/elasticsearch/data
  8. ports:
  9. - ${ES_PORT}:9200
  10. environment:
  11. - node.name=es01
  12. - cluster.name=${CLUSTER_NAME}
  13. - cluster.initial_master_nodes=es01
  14. - ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
  15. - bootstrap.memory_lock=false
  16. - xpack.security.enabled=false
  17. - TZ=${TIMEZONE}
  18. mem_limit: ${MEM_LIMIT}
  19. ulimits:
  20. memlock:
  21. soft: -1
  22. hard: -1
  23. healthcheck:
  24. test: ["CMD-SHELL", "curl http://localhost:9200"]
  25. interval: 10s
  26. timeout: 10s
  27. retries: 120
  28. networks:
  29. - ragflow
  30. restart: always
  31. kibana:
  32. depends_on:
  33. es01:
  34. condition: service_healthy
  35. image: docker.elastic.co/kibana/kibana:${STACK_VERSION}
  36. container_name: ragflow-kibana
  37. volumes:
  38. - kibanadata:/usr/share/kibana/data
  39. ports:
  40. - ${KIBANA_PORT}:5601
  41. environment:
  42. - SERVERNAME=kibana
  43. - ELASTICSEARCH_HOSTS=http://es01:9200
  44. - TZ=${TIMEZONE}
  45. mem_limit: ${MEM_LIMIT}
  46. networks:
  47. - ragflow
  48. mysql:
  49. image: mysql:5.7.18
  50. container_name: ragflow-mysql
  51. environment:
  52. - MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
  53. - TZ=${TIMEZONE}
  54. command:
  55. --max_connections=1000
  56. --character-set-server=utf8mb4
  57. --collation-server=utf8mb4_general_ci
  58. --default-authentication-plugin=mysql_native_password
  59. --tls_version="TLSv1.2,TLSv1.3"
  60. --init-file /data/application/init.sql
  61. ports:
  62. - ${MYSQL_PORT}:3306
  63. volumes:
  64. - mysql_data:/var/lib/mysql
  65. - ./init.sql:/data/application/init.sql
  66. networks:
  67. - ragflow
  68. healthcheck:
  69. test: ["CMD", "mysqladmin" ,"ping", "-uroot", "-p${MYSQL_PASSWORD}"]
  70. interval: 10s
  71. timeout: 10s
  72. retries: 3
  73. restart: always
  74. minio:
  75. image: quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z
  76. container_name: ragflow-minio
  77. command: server --console-address ":9001" /data
  78. ports:
  79. - 9000:9000
  80. - 9001:9001
  81. environment:
  82. - MINIO_ROOT_USER=${MINIO_USER}
  83. - MINIO_ROOT_PASSWORD=${MINIO_PASSWORD}
  84. - TZ=${TIMEZONE}
  85. volumes:
  86. - minio_data:/data
  87. networks:
  88. - ragflow
  89. restart: always
  90. ragflow:
  91. depends_on:
  92. mysql:
  93. condition: service_healthy
  94. es01:
  95. condition: service_healthy
  96. image: swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:v1.0
  97. container_name: ragflow-server
  98. ports:
  99. - ${SVR_HTTP_PORT}:9380
  100. - 80:80
  101. - 443:443
  102. volumes:
  103. - ./service_conf.yaml:/ragflow/conf/service_conf.yaml
  104. - ./ragflow-logs:/ragflow/logs
  105. - ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
  106. - ./nginx/proxy.conf:/etc/nginx/proxy.conf
  107. - ./nginx/nginx.conf:/etc/nginx/nginx.conf
  108. environment:
  109. - TZ=${TIMEZONE}
  110. networks:
  111. - ragflow
  112. restart: always
  113. volumes:
  114. esdata01:
  115. driver: local
  116. kibanadata:
  117. driver: local
  118. mysql_data:
  119. driver: local
  120. minio_data:
  121. driver: local
  122. networks:
  123. ragflow:
  124. driver: bridge