is there is any way to run elastalert without using docker
Yes - you need the same stuff that is installed in container like node, python etc.
IMO https://github.com/Karql/elastalert2-server/blob/master/Dockerfile is self documented to do that.
can you explain me a little bit that what are the requirements to run the elastalert 2 server ?
or your provided directory is the complete package to run elastalert2 server
Like I said Dockerfile contains detailied instruction step by step what you need.
one last question
these docker commands means that we have to run elastalert firstly then elastalert 2 server will work?
No.
This mount file /config/elastalert.yaml from host (server, your computer) in running container in location /opt/elastalert/config.yaml.
https://docs.docker.com/storage/volumes/#choose-the--v-or---mount-flag
elastalert2-server run elastalert2 itself (new process https://github.com/Karql/elastalert2-server/blob/master/src/services/process.service.ts#L108).
Hello Sir Sir can we change the localhost:3030 to ip? if possible so where i can do this
Thank you for your time
By default server listen on all interfaces so you can access it by host or ip.

sir when i wrote the rule name and then i press the save button it gave me the message "internal server error" and in terminal it give me the error like that
node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise */); ^
[Error: EACCES: permission denied, open '/opt/elastalert/rules/Spam Alert.yaml'] { errno: -13, code: 'EACCES', syscall: 'open', path: '/opt/elastalert/rules/Spam Alert.yaml' }
EACCES: permission denied is clear enough. ` - probably user that is used to run elastalert2-server does not have access to this folder.
@Kiscitkahutta sory this place is for submit issues not for learning you IT.