Docker Compose script helps to start a PostgreSQL instance for tests
docker-compose up # starts the database
...
Ctrl+C
docker-compose up -d # launch the container in background
docker-compose rm # removes the container (e.g. to recreate the db)
PGV=9.5|9.6|10|11|12|latest
(default:latest
). Configures PostgreSQL Docker image. See the list of available tags at the official page.SCRAM=yes|no
(default:yes
). Configurespassword_encryption=scram-sha-256
SSL=yes|no
(default:yes
). Configures SSLXA=yes|no
(default:yes
). Configuresmax_prepared_transactions=64
ifyes
docker-compose down && PGV=10 SSL=no XA=yes SCRAM=yes docker-compose up
docker-compose down && PGV=latest docker-compose up