services:
  fsl-server:
    image: cindyncl26/fsl-client:latest
    container_name: fsl-server
    restart: "no"
    command: python src/nodes/run_scenario_loop.py --role server
    ports:
      - "50051:50051"
    environment:
      - PYTHONUNBUFFERED=1
      - PYTHONPATH=/app
      - FSL_DEVICE=cpu
      - FSL_CONFIG_PATH=/app/config.yaml
      - FSL_MATRIX_CONFIG_PATH=/app/matrix.yaml
      - SESSION_ID=${SESSION_ID:-}
      - SCENARIO_ID=${SCENARIO_ID:-}
    volumes:
      - ./config.yaml:/app/config.yaml:ro
      - ./matrix.yaml:/app/matrix.yaml:ro
      - ./results:/app/results
      - ./bestweights:/app/bestweights
