aboutsummaryrefslogtreecommitdiffstats
path: root/docker/postgres.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
committerterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
commit6e528248414e330c9e25e81596ab47b8b8a5b701 (patch)
treee1aa41a7f3198eeac187e6177ec7d4a33db229d3 /docker/postgres.sh
downloadscripts-6e528248414e330c9e25e81596ab47b8b8a5b701.tar.gz
scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.zip
first commitmaster
Diffstat (limited to 'docker/postgres.sh')
-rwxr-xr-xdocker/postgres.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/postgres.sh b/docker/postgres.sh
new file mode 100755
index 0000000..14f9adf
--- /dev/null
+++ b/docker/postgres.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env sh
+
+docker run -d -p 5432:5432 -v postgres-data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=devi -e POSTGRES_USER=devi -e POSTGRES_DB=devi postgres:13.2-alpine
+# docker run --add-host=localhost:127.0.0.1 -p 5432:5432 -v postgres-data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=devi -e POSTGRES_USER=devi -e POSTGRES_DB=devi postgres:13