include:
  - path: ./docker-compose-base.yml
    env_file: ./.env

services:
  fu-hsi-web:
    depends_on:
      mysql:
        condition: service_started
      neo4j:
        condition: service_started
      minio:
        condition: service_started
    image: fu-hsi-web:1.0.0
    container_name: fu-hsi-web
    ports:
      - ${WEB_HTTP_PORT}:8097
    volumes:
      - ./fu-hsi-web/:/data/fu-hsi/web/
    command:
      --spring.profiles.active=${SPRING_PROFILES_ACTIVE}
      --ollama.url=${OLLAMA_URL}
      --ollama.model=${OLLAMA_MODEL}
      --langChain-chat.url=${LANGCHAIN_CHAT_URL}
      --datasource.username=${MYSQL_PASSWORD}
      --neo4j.username=${NEO4J_USERNAME}
      --neo4j.password=${NEO4J_PASSWORD}
      --minio.username=${MINIO_USER}
      --minio.password=${MINIO_PASSWORD}
    environment:
      - TZ=${TIMEZONE}
    networks:
      - fu-hsi
    restart: always
  fu-hsi-nginx:
    depends_on:
      fu-hsi-web:
        condition: service_started
    image: fu-hsi-nginx:1.0.0
    container_name: fu-hsi-nginx
    ports:
      - ${NGINX_HTTP_PORT}:80
    volumes:
      - ./fu-hsi-nginx/html/:/usr/share/nginx/html/
    environment:
      - TZ=${TIMEZONE}
      - FU_HSI_SERVERS=${FU_HSI_SERVERS}
    networks:
      - fu-hsi
    restart: always