You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rebased-podman/20-create-db.sh

17 lines
323 B

#!/bin/bash
source ./script_config.sh
mkdir ./postgres -p
podman run -d \
--name rebased-db \
--pod rebased-pod \
-e POSTGRES_USER=$PG_USER \
-e POSTGRES_PASSWORD=$PG_PASS \
-e POSTGRES_DB=$PG_NAME \
-v ./postgres:/var/lib/postgresql/data \
-v ./config:/config:ro \
postgres:14.6-alpine