Team Ai
Apppublic

Aniruddha7/QueryLens-Text2SQL_DocVQA-V2

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
docker-compose.yml79 linesDownload Raw Back to root
1version: '3.8'2 3services:4  # Main Agentic Application5  agent-app:6    build: .7    container_name: text2sql-agent-app8    restart: unless-stopped9    env_file: Agent/.env10    environment:11      - OLLAMA_BASE_URL=http://172.27.224.1:1143412      - LLM_CTX=409613    deploy:14      resources:15        limits:16          cpus: '2.0'17          memory: 4G18    ports:19      - "8000:8000"20      - "8700:8700"21      - "8701:8701"22    depends_on:23      employee-postgres:24        condition: service_healthy25      employee-mysql:26        condition: service_healthy27    volumes:28      - ./Agent:/app/Agent29      - ./web:/app/web30    networks:31      - employee-net32 33  # MySQL Database34  employee-mysql:35    image: mysql:8.036    container_name: employee-mysql37    restart: unless-stopped38    env_file: Agent/.env39    ports:40      - "${MYSQL_PORT:-3306}:3306"41    volumes:42      - ./employee-sample-database/mysql/dataset_small:/docker-entrypoint-initdb.d43      - mysql-data:/var/lib/mysql44    networks:45      - employee-net46    healthcheck:47      test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "--silent"]48      interval: 5s49      timeout: 5s50      retries: 1251      start_period: 30s52 53  # PostgreSQL Database54  employee-postgres:55    image: postgres:1556    container_name: employee-postgres57    restart: unless-stopped58    env_file: Agent/.env59    ports:60      - "${POSTGRES_PORT:-5432}:5432"61    volumes:62      - ./employee-sample-database/postgres/dataset_small:/docker-entrypoint-initdb.d63      - postgres-data:/var/lib/postgresql/data64    networks:65      - employee-net66    healthcheck:67      test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER:-postgres}"]68      interval: 5s69      timeout: 5s70      retries: 1271      start_period: 30s72 73volumes:74  mysql-data:75  postgres-data:76 77networks:78  employee-net:79    driver: bridge