# GNSS Guard Server - Development Docker Compose
# No nginx, no SSL - direct access to FastAPI on port 8000
#
# Usage:
#   cp env.example .env.dev
#   # Edit .env.dev (can use SQLite for dev: sqlite:///./data/gnss_guard.db)
#   docker compose -f docker-compose.dev.yml up -d

version: '3.8'

services:
  gnss-server:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: gnss-guard-server-dev
    restart: unless-stopped
    env_file:
      - .env.dev
    ports:
      - "8000:8000"
    volumes:
      # Mount source code for live reload (development only)
      - .:/app
    environment:
      - GNSS_SERVER_DEBUG=true
    command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/auth/check"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s

