version: "3.9"

services:
  bowtierisk:
    build:
      context: .
      dockerfile: Dockerfile.onprem
    image: bowtierisk-onprem:latest
    container_name: bowtierisk-onprem
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      - PORT=8080
      - DATA_DIR=/app/data
      - BOWTIE_MODE=onprem
      # Optional: Mount or specify path to your downloaded bowtie-license.btlic file
      - LICENSE_FILE=/app/data/license.btlic
    volumes:
      - bowtierisk_data:/app/data

volumes:
  bowtierisk_data:
    driver: local
