From 136dd2311dd928b7aeab44445d66a37956c8de2f Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Sun, 25 Aug 2024 13:14:54 +0200 Subject: [PATCH] Prevent local test db to disappear on docker restart --- Run-PostgresDb.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Run-PostgresDb.ps1 b/Run-PostgresDb.ps1 index 4ad1ab2..f96dca7 100644 --- a/Run-PostgresDb.ps1 +++ b/Run-PostgresDb.ps1 @@ -1 +1 @@ -docker run --rm -d -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres postgres:16.3-alpine \ No newline at end of file +docker run -d -p 5432:5432 --restart always --name vegasco-test-db -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres postgres:16.3-alpine \ No newline at end of file