# AI Stack Log Ingest Service
# Connects to existing Loki at logs.intra.flexinit.nl

services:
  log-ingest:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: ai-stack-log-ingest
    ports:
      - "3102:3000"
    environment:
      # Connect to existing Loki on dokploy-network
      - LOKI_URL=http://monitor-grafanaloki-qkj16i-loki-1:3100
      - LOG_LEVEL=info
    networks:
      - dokploy-network
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
      interval: 30s
      timeout: 10s
      retries: 3

networks:
  dokploy-network:
    external: true
