services:
  doris-schoolhouse:
    container_name: doris-schoolhouse
    build:
      context: .
      dockerfile: Dockerfile
    restart: unless-stopped
    ports:
      - "8091:8091"
    env_file:
      - .env
    environment:
      TZ: ${TZ}
      SCHOOLHOUSE_HOST: 0.0.0.0
      SCHOOLHOUSE_PORT: 8091
    networks:
      - schoolhouse-net
    volumes:
      - /opt/doris-schoolhouse/data:/data
      - /home/fizzlepoof/.openclaw/workspace:/workspace/.openclaw-workspace:ro
    healthcheck:
      test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8091/api/health || exit 1"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 30s

networks:
  schoolhouse-net:
    driver: bridge
