services:
  ndc-beam-viewer:
    image: node:22-alpine
    working_dir: /beam/server
    command: node index.js
    environment:
      PORT: "8080"
    ports:
      - "8080:8080"
    volumes:
      - ./:/beam

  nodedc-bim-converter:
    build:
      context: ./converter
    image: nodedc/bim-converter:local
    container_name: NodeDcBimConverter
    platform: linux/amd64
    environment:
      NODEDC_BIM_CONVERTER_UPLOADS_DIR: /beam/uploads
      NODEDC_BIM_CONVERTER_INTERVAL_SECONDS: "10"
    volumes:
      - ./server/data/uploads:/beam/uploads
