You can check Joplin. I am running my own server. It has mobile, desktop and bonus command line clients.