I have three containers of the same image deployed in the same host, how to do the mounting?

You might want to try service template placeholders in your volume mapping.
I did use {{.Task.Slot}} as a postfix to volume paths in the past, though I don’t recall the exact usage.
Probably it was on the right hand side of the mapping, in combination with an env variable to set the target folder in the container.

see:

Though, the easiest approach would be to make the hostname of the container part of the filename of the logs.