services: llm-app-frontend: image: 192.168.107.2:5000/yusyscloud/llm-app-frontend:develop-16 depends_on: llm-app-backend: condition: service_healthy container_name: llm-app-frontend ports: - ${FRONTEND_PORT}:80 environment: - TZ=${TIMEZONE} networks: - yusys-xs restart: always llm-app-backend: depends_on: mysql: condition: service_healthy image: 192.168.107.2:5000/yusyscloud/llm-app-backend:develop-6 container_name: llm-app-backend ports: - ${BACKEND_PORT}:8000 volumes: - ./config/application.yaml:/app/application.yml environment: - TZ=${TIMEZONE} healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000"] interval: 10s timeout: 10s retries: 5 start_period: 20s networks: - yusys-xs restart: always llm-agent: container_name: llm-agent image: 192.168.107.2:5000/yusyscloud/llm-llmops:credit_report-49 volumes: - ./config/cfg.json:/app/llmops/cfg.json - ./config/car_credit_template.json:/app/tests/workflow/example/car_credit_template.json - ./data:/app/.tmp_llmops ports: - ${AGENT_API_PORT}:9000 - ${AGENT_FILE_PORT}:9001 networks: - yusys-xs restart: always mysql: image: docker.byai.uk/library/mysql:8.4.3 container_name: llm-mysql environment: - MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD} - TZ=${TIMEZONE} command: --max_connections=1000 --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --tls_version="TLSv1.2,TLSv1.3" --init-file /data/application/init.sql ports: - ${MYSQL_PORT}:3306 volumes: - mysql_data:/var/lib/mysql - ./init.sql:/data/application/init.sql networks: - yusys-xs healthcheck: test: ["CMD", "mysqladmin" ,"ping", "-uroot", "-p${MYSQL_PASSWORD}"] interval: 10s timeout: 10s retries: 3 restart: always minio: image: quay.io/minio/minio:RELEASE.2024-09-22T00-33-43Z container_name: llm-minio command: server --console-address ":9001" /data ports: - ${MINIO_PORT}:9000 - ${MINIO_CONSOLE_PORT}:9001 environment: - MINIO_ROOT_USER=${MINIO_USER} - MINIO_ROOT_PASSWORD=${MINIO_PASSWORD} - TZ=${TIMEZONE} volumes: - minio_data:/data networks: - yusys-xs restart: always redis: image: docker.byai.uk/library/redis:7.2.4 container_name: llm-redis command: redis-server --requirepass ${REDIS_PASSWORD} --maxmemory 128mb --maxmemory-policy allkeys-lru ports: - ${REDIS_PORT}:6379 volumes: - redis_data:/data networks: - yusys-xs restart: always volumes: mysql_data: driver: local minio_data: driver: local redis_data: driver: local networks: yusys-xs: driver: bridge