1 keycloak instance can have many realms.
I won't get into the nonsense of having a single database server per any instance (not limited to keycloak). Such a waste of resources.
You can have a system, postgres in this case, and make it listen on the docker iface, set it up to launch after and require docker.service.
The nginx conf was interesting and I'll adjust mine.