From 75b3fa499ee587dfc39ff83b080e310b27b728dc Mon Sep 17 00:00:00 2001 From: "KUI\\ahkui" Date: Fri, 15 Jun 2018 15:30:45 +0800 Subject: [PATCH] no message --- postgres/docker-entrypoint-initdb.d/createdb.sh.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres/docker-entrypoint-initdb.d/createdb.sh.example b/postgres/docker-entrypoint-initdb.d/createdb.sh.example index 680451d..2811023 100644 --- a/postgres/docker-entrypoint-initdb.d/createdb.sh.example +++ b/postgres/docker-entrypoint-initdb.d/createdb.sh.example @@ -6,9 +6,9 @@ # example: .env POSTGRES_USER=appuser and need db name is myshop_db # # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL -# CREATE USER $POSTGRES_USER PASSWORD ; +# CREATE USER my_user PASSWORD my_password; # CREATE DATABASE myshop_db; -# GRANT ALL PRIVILEGES ON DATABASE myshop_db TO $POSTGRES_USER; +# GRANT ALL PRIVILEGES ON DATABASE myshop_db TO my_user; # EOSQL # # this sh script will auto run when the postgres container starts and the $DATA_PATH_HOST/postgres not found.