services: agent-api: build: context: . dockerfile: api/Dockerfile container_name: agent-api ports: - "8080:8080" env_file: - .env # pulls your AZURE_OPENAI_*, SMTP_*, MAIL_*, etc. environment: CHUNK_DIR: /app/out # where the agent reads chunk files volumes: - chunks:/app/out restart: unless-stopped file-poller: build: context: . dockerfile: poller/Dockerfile container_name: file-poller environment: INDIR: /app/in # folder the poller watches OUTDIR: /app/out # folder it writes chunk_*.jsonl SLEEP_SECONDS: 60 # scan every minute EMAIL_SEND_DEFAULT: "true" # tell agent-api to email results AGENT_API_URL: http://agent-api:8080 volumes: - ./data:/app/in:rw # drop your .jsonl files here (on Windows) - chunks:/app/out depends_on: - agent-api restart: unless-stopped volumes: chunks: