From 82cd61a129ce76658ac77f0e7de5472287b39729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Diedrich?= Date: Wed, 22 Feb 2023 09:32:46 +0100 Subject: [PATCH] pull always; pgadmin persistence; reformat --- pod-postgres.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pod-postgres.sh b/pod-postgres.sh index 1077d9b..7aa7943 100755 --- a/pod-postgres.sh +++ b/pod-postgres.sh @@ -1,19 +1,19 @@ #!/bin/sh -podman pull dpage/pgadmin4 -podman pull postgres:14 - podman pod create --name postgres-pod \ --replace=true \ -p 5080:80 \ -p 5432:5432 podman run --name main-db --pod postgres-pod --replace=true \ - -v pgdata:/var/lib/postgresql/data \ - -e POSTGRES_PASSWORD=postgres \ - -d postgres:14 + --pull=always \ + -v pgdata:/var/lib/postgresql/data \ + -e POSTGRES_PASSWORD=postgres \ + -d postgres:14 podman run --name pgadmin --pod postgres-pod --replace=true \ - -e PGADMIN_DEFAULT_EMAIL="hello@postgres" \ + --pull=always \ + -v pgadmindata:/var/lib/pgadmin \ + -e PGADMIN_DEFAULT_EMAIL="hello@postgres.xyz" \ -e PGADMIN_DEFAULT_PASSWORD="postgres" \ -d dpage/pgadmin4