Configuring custom private repo of discourse through docker

Is there anyway of doing this?

My use-case is I am using the discourse oauth basic plugin, and I don’t want users to be able to change their usernames. It seems the only way to remove this ability is to change the core of discourse?