Build a docker postgresql container from base with the option for persistence