I deployed the system on a local network without access to the mail server
How can I set up so that users can set their own password when they create their account
Try using the smtp plugin.
Actually, I'm not even sure you need access to a mail server so that users can register themselves. It does take a mail server, though, if you want DokuWiki to create the passwords for new users. Otherwise, they enter their own passwords.