- Add
host all all 0.0.0.0/0 trustto /etc/postgresql/<version>/main/pg_hba.conf - Update /etc/postgresql/<version>/main/postgresql.conf to use
listen_addresses = '*' - Restart the server with
sudo /etc/init.d/postgresql restart
- Add
config.vm.network :forwarded_port, host: 5432, guest: 5432to theVagrant.configureblock in your Vagrantfile.