From 091274e79e95ab5c5501c4a26e7f2daad0a151b8 Mon Sep 17 00:00:00 2001 From: Krishna Addepalli Date: Tue, 20 Dec 2022 10:31:58 +0100 Subject: [PATCH] Run postgres:15 image from docker, to avoid local installation --- scripts/init_db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/init_db.sh b/scripts/init_db.sh index 1975af4..335fec6 100755 --- a/scripts/init_db.sh +++ b/scripts/init_db.sh @@ -33,8 +33,8 @@ then -e POSTGRES_PASSWORD=${DB_PASSWORD} \ -e POSTGRES_DB=${DB_NAME} \ -p "${DP_PORT}":5432 \ - -d postgres \ - postgres -N 1000 + -d --name "postgres_$(date '+%s')" \ + postgres:15 -N 1000 # ^ Increased maximum number of connections for testing purposes fi