docker-compose.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. include:
  2. - path: ./docker-compose-base-gpu.yml
  3. env_file: ./.env
  4. services:
  5. llm-app:
  6. depends_on:
  7. mysql:
  8. condition: service_healthy
  9. es01:
  10. condition: service_healthy
  11. image: 192.168.107.2:5000/yusyscloud/llm-app:0826-0830-55
  12. container_name: llm-app
  13. ports:
  14. - ${SVR_HTTP_PORT}:80
  15. volumes:
  16. - ./config/application.yaml:/application.yml
  17. healthcheck:
  18. test: ["CMD", "curl", "-f", "http://localhost:80"]
  19. interval: 30s
  20. timeout: 10s
  21. retries: 3
  22. start_period: 30s
  23. environment:
  24. - TZ=${TIMEZONE}
  25. networks:
  26. - yusys-rag
  27. restart: always
  28. llm-rag:
  29. depends_on:
  30. llm-app:
  31. condition: service_healthy
  32. container_name: yusys-rag-base
  33. image: 192.168.107.2:5000/yusyscloud/llm-rag:splitload-keyword-retrieve-35
  34. ports:
  35. - 8001:8001
  36. environment:
  37. - llm_app_url=http://llm-app:80
  38. - TZ=${TIMEZONE}
  39. healthcheck:
  40. test: ["CMD-SHELL", "curl http://localhost:8001/health"]
  41. interval: 10s
  42. timeout: 10s
  43. retries: 120
  44. networks:
  45. - yusys-rag
  46. restart: always