Files
container-stuff/pod-postgres.sh

20 lines
507 B
Bash
Raw Normal View History

2022-12-01 11:39:33 +01:00
#!/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
podman run --name pgadmin --pod postgres-pod --replace=true \
-e PGADMIN_DEFAULT_EMAIL="hello@postgres" \
-e PGADMIN_DEFAULT_PASSWORD="postgres" \
-d dpage/pgadmin4