Add basic auth to your Spoolman server using Nginx.
Just generate a correct .htpasswd file and put it in the nginx folder.
Then you can run your service (docker compose up -d) and use it.
Moonraker settings should be like this:
[spoolman]
server: http://username:password@your-server-host:7912