services:
  telegram-bot:
    build:
      context: job_seeker_tools
      dockerfile: Dockerfile
    container_name: job-seeker-telegram-bot
    env_file:
      - .env
    volumes:
      - ./data:/app/data
    restart: unless-stopped
    # No ports to expose; bot initiates outbound HTTPS connections only.

  company-researcher-api:
    build:
      context: company-researcher
      dockerfile: Dockerfile
    ports:
      - "8000:8000"
    container_name: job-seeker-company-researcher-api
    environment:
      - PYTHONUNBUFFERED=1
    env_file:
      - .env
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s
    restart: unless-stopped
