services:
  backend:
    environment:
      - SPECFORGE_PORT=8080
      - SPECFORGE_LLM_PROVIDER=openai # other options: ollama, gemini
      # - SPECFORGE_LLM_MODEL=gpt-5-nano-2025-08-07 # choose the appropriate model for your provider, to change from default
      - OPENAI_API_KEY=${OPENAI_API_KEY}
      - GEMINI_API_KEY=${GEMINI_API_KEY}
      # - OLLAMA_API_BASE=http://127.0.0.1:11434 # change if your ollama server is running remotely
    image: ghcr.io/imiron-io/specforge/specforge-backend:v0.5.9
    ports:
      - 8080:8080
    volumes:
      - type: bind
        source: ~/.config/specforge/ # point to the directory where you have placed your license.json file on the host machine
        target: /app/specforgeconfig/ # config directory inside the container (do not modify this)
        read_only: true
