configuration for postgresql and redis