docker-compose.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. services:
  2. llm-app-frontend:
  3. image: 192.168.107.2:5000/yusyscloud/llm-app-frontend:develop-16
  4. depends_on:
  5. llm-app-backend:
  6. condition: service_healthy
  7. container_name: llm-app-frontend
  8. ports:
  9. - ${FRONTEND_PORT}:80
  10. environment:
  11. - TZ=${TIMEZONE}
  12. networks:
  13. - yusys-xs
  14. restart: always
  15. llm-app-backend:
  16. depends_on:
  17. mysql:
  18. condition: service_healthy
  19. image: 192.168.107.2:5000/yusyscloud/llm-app-backend:develop-6
  20. container_name: llm-app-backend
  21. ports:
  22. - ${BACKEND_PORT}:8000
  23. volumes:
  24. - ./config/application.yaml:/app/application.yml
  25. environment:
  26. - TZ=${TIMEZONE}
  27. healthcheck:
  28. test: ["CMD", "curl", "-f", "http://localhost:8000"]
  29. interval: 10s
  30. timeout: 10s
  31. retries: 5
  32. start_period: 20s
  33. networks:
  34. - yusys-xs
  35. restart: always
  36. llm-agent:
  37. container_name: llm-agent
  38. image: 192.168.107.2:5000/yusyscloud/llm-llmops:credit_report-49
  39. volumes:
  40. - ./config/cfg.json:/app/llmops/cfg.json
  41. - ./config/car_credit_template.json:/app/tests/workflow/example/car_credit_template.json
  42. - ./data:/app/.tmp_llmops
  43. ports:
  44. - ${AGENT_API_PORT}:9000
  45. - ${AGENT_FILE_PORT}:9001
  46. networks:
  47. - yusys-xs
  48. restart: always
  49. mysql:
  50. image: docker.byai.uk/library/mysql:8.4.3
  51. container_name: llm-mysql
  52. environment:
  53. - MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
  54. - TZ=${TIMEZONE}
  55. command:
  56. --max_connections=1000
  57. --character-set-server=utf8mb4
  58. --collation-server=utf8mb4_general_ci
  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. - yusys-xs
  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.2024-09-22T00-33-43Z
  76. container_name: llm-minio
  77. command: server --console-address ":9001" /data
  78. ports:
  79. - ${MINIO_PORT}:9000
  80. - ${MINIO_CONSOLE_PORT}: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. - yusys-xs
  89. restart: always
  90. redis:
  91. image: docker.byai.uk/library/redis:7.2.4
  92. container_name: llm-redis
  93. command: redis-server --requirepass ${REDIS_PASSWORD} --maxmemory 128mb --maxmemory-policy allkeys-lru
  94. ports:
  95. - ${REDIS_PORT}:6379
  96. volumes:
  97. - redis_data:/data
  98. networks:
  99. - yusys-xs
  100. restart: always
  101. volumes:
  102. mysql_data:
  103. driver: local
  104. minio_data:
  105. driver: local
  106. redis_data:
  107. driver: local
  108. networks:
  109. yusys-xs:
  110. driver: bridge