mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-01-18 00:34:25 -05:00
11 lines
298 B
Bash
Executable File
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
|