2022-12-01 11:39:33 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
podman pod create --name postgres-pod \
|
|
|
|
--replace=true \
|
|
|
|
-p 5080:80 \
|
|
|
|
-p 5432:5432
|
|
|
|
|
|
|
|
podman run --name main-db --pod postgres-pod --replace=true \
|
2023-02-22 09:32:46 +01:00
|
|
|
--pull=always \
|
|
|
|
-v pgdata:/var/lib/postgresql/data \
|
|
|
|
-e POSTGRES_PASSWORD=postgres \
|
|
|
|
-d postgres:14
|
2022-12-01 11:39:33 +01:00
|
|
|
|
|
|
|
podman run --name pgadmin --pod postgres-pod --replace=true \
|
2023-02-22 09:32:46 +01:00
|
|
|
--pull=always \
|
|
|
|
-v pgadmindata:/var/lib/pgadmin \
|
|
|
|
-e PGADMIN_DEFAULT_EMAIL="hello@postgres.xyz" \
|
2022-12-01 11:39:33 +01:00
|
|
|
-e PGADMIN_DEFAULT_PASSWORD="postgres" \
|
|
|
|
-d dpage/pgadmin4
|