setup config with postgres and redis