pull always; pgadmin persistence; reformat

This commit is contained in:
2023-02-22 09:32:46 +01:00
parent b869c93b4b
commit 82cd61a129

View File

@ -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