Skip to content

Commit 85494f1

Browse files
Create script to up postgres docker container
1 parent ca32393 commit 85494f1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
PORT=5432
3+
NAME=postgresql_flask_tutorial
4+
VOLUME=$(pwd)/data_postgres
5+
POSTGRES_PASSWORD=123
6+
7+
mkdir -p $VOLUME
8+
docker run -t -i -p $PORT:$PORT --name $NAME -v $VOLUME:/var/lib/postgresql/data -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD postgres

0 commit comments

Comments
 (0)