version: "3.9"
services:
  server:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "${SERVER_PORT:-3001}:3001"
    volumes:
      - ./data:/app/data
    environment:
      - NODE_ENV=production
      - QBIT_BASE_URL=${QBIT_BASE_URL}
      - QBIT_USERNAME=${QBIT_USERNAME}
      - QBIT_PASSWORD=${QBIT_PASSWORD}
      - APP_USERNAME=${APP_USERNAME}
      - APP_PASSWORD=${APP_PASSWORD}
      - JWT_SECRET=${JWT_SECRET}
      - POLL_INTERVAL_MS=${POLL_INTERVAL_MS}
      - ENFORCE_INTERVAL_MS=${ENFORCE_INTERVAL_MS}
      - DEFAULT_DELAY_MS=${DEFAULT_DELAY_MS}
      - MAX_LOOP_LIMIT=${MAX_LOOP_LIMIT}
