This is a reproducable VM to run postgresql/postgis/geoserver to test data for clients. Why vagrant? For me less time worrying over docker.
This box is built for 4GB of RAM and 2GB are given to Geoserver. Adjust as necessary.
I downloaded two pieces of software to make this work:
Once both of those are installed you can add the vagrant base image by doing:
vagrant box add ubuntu/bionic64
Building the Box
Create a directory to hold your vagrant box. Create a data directory in that directory. That will be your spot to pass data back and forth between the box and your host machine.
Once the bionic box is installed you want to grab the vagrantfile and the provision.sh file from https://github.com/rjhale1971/terra
In the directory you have created and downloaded the vagrantfile and provision.sh into - type:
Once created you can access the components as follows:
http://localhost:8080/geoserver/web/ - For Geoserver
localhost:5433 - for PostGIS
Occasionally you'll need to update your base image:
vagrant box update
To kill the box:
To pause the box: