- Add
host all all 0.0.0.0/0 trust
to /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: 5432
to theVagrant.configure
block in your Vagrantfile.