# Linux variant — run:  docker compose -f docker-compose.linux.yml up -d
#
# Uses host networking, so the container sees Ollama / LM Studio on plain
# localhost exactly like a native install. No URL or firewall fiddling, and
# Ollama can stay bound to 127.0.0.1. (Host networking is a Linux-only
# Docker feature; macOS/Windows users should use docker-compose.yml.)
services:
  assignment-creator:
    build:
      context: ..
      dockerfile: docker/Dockerfile
    network_mode: host # app serves on localhost:3000, talks to localhost:11434
    volumes:
      - assignment-data:/app/data
    restart: unless-stopped

volumes:
  assignment-data:
