# slopsmith - https://github.com/byrongamatos/slopsmith
services:
  slopsmith:
    build:
      context: .
      dockerfile: dockerfile
      args:
        # Set to 'true' to bake the plugin into the image during build
        - PLUGIN_SECTION_MAP=true
        - PLUGIN_NOTE_DETECTION=true
        - PLUGIN_FIND_MORE_CDLC=true
        - PLUGIN_SPLIT_SCREEN=true
        - PLUGIN_SLOPPAK_CONVERTER=true
        - PLUGIN_INVERT_HIGHWAY=true
        - PLUGIN_JUMPING_TAB=true
        - PLUGIN_STEP_MODE=true
        - PLUGIN_THEMES=true
        - PLUGIN_TUNER=true
    container_name: slopsmith-web
    volumes:
      - "Rocksmith_CDLC:/dlc"
      - "${CONFIG_DIR_PATH}:/config"
      # Only mount this if you want to override the baked-in plugins or add manual ones
      # - "./plugins:/app/plugins" 
    environment:
      - DLC_DIR=/dlc
      - CONFIG_DIR=/config
    ports:
      - "${SLOPSMITH_PORT}:8000"
    restart: unless-stopped
    labels:
      # Nginx Proxy Manager Automation
      - "npm.proxy.domains=slopsmith"
      - "npm.proxy.host=${DOCKER_HOST_IP}"
      - "npm.proxy.port=${SLOPSMITH_PORT}"
      - "npm.proxy.scheme=https"
      - "npm.proxy.ssl_verify=false"
      - "npm.proxy.websockets=true"
      # Pi-hole Automation (Point to Docker Host/Proxy IP)
      - "pihole.custom-record=[[\"slopsmith\", \"${DOCKER_HOST_IP}\"]]"

volumes:
    Rocksmith_CDLC:
        name: Rocksmith_CDLC
        driver_opts:
            type: nfs
            o: addr=${NAS_ADDR},nolock,soft,rw
            device: :${DLC_DIR_PATH}

