tools/scripts/pgsql.sh
2023-02-23 23:38:31 -05:00

11 lines
298 B
Bash
Executable File

#!/usr/bin/env bash
mkdir -p /var/lib/docker/storage/postgres &&
chmod -Rf 777 /var/lib/docker/storage/postgres
docker run -d \
--name postgres \
--restart=always \
-p 5432:5432 \
-v /var/lib/docker/storage/postgres:/var/lib/postgresql/data \
registry.casjay.in/latest/postgres:latest