Purpose: creation of standard Postgres postgis development environment to avoid version conflicts
Based on kartoza/postgis:12.4 Docker container application.
git clone repository https://github.com/robinsonbrz/postgres-12-postgis-3-dev.git
docker-compose -f docker-compose.prod.yml up -d --build
A new container named dev_pg_12 is created and running
psql -h localhost -p 25432 postgres
psql -h localhost -p 25432 postgres
postgres=#
CREATE DATABASE nome_do_banco;
\q
psql -h localhost -p 25432 -U postgres pacto < pacto.sql\n
pg_restore -h localhost -p 25432 -U postgres -d nome_do_banco nome_do_banco.dump
.env file change the DB_PORT=25432
docker exec -ti dev_pg_12 bash