In this how to I will show how to setup a PostgreSQL server on docker, including how to persist data outside of the container, and also how to run PGAdmin in a container as well. In this example I asume that you’ve already got Docker running on your server, if not, set this up first. Install PostgreSQL By default the PostgreSQL container is configured to save its data to /var/lib/postgresql/data inside of the container.... more...