Skip to content

Commit

Permalink
Merge pull request CentOS#128 from xamebax/update-postgresql-readme
Browse files Browse the repository at this point in the history
LGTM, merging (btw, don't know how to apologize, but it seems official maintainers in this repo aren't active nor paying attention .. let's try to fix this)
  • Loading branch information
arrfab authored Apr 26, 2019
2 parents 4051b11 + 4c8bc92 commit 13e6933
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions postgres/centos7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Setup

To build the image

# docker build --rm -t <yourname/postgresql .
# docker build --rm -t <yourname>/postgresql .


Launching PostgreSQL
Expand All @@ -28,13 +28,13 @@ To connect to the container as the administrative `postgres` user:
Creating a database at launch
-----------------------------

You can create a postgresql superuser at launch by specifying `DB_USER` and
`DB_PASS` variables. You may also create a database by using `DB_NAME`.
You can create a postgresql superuser at launch by specifying `POSTGRESQL_USER` and
`POSTGRESQL_PASSWORD` variables. You may also create a database by using `POSTGRESQL_DATABASE`.

docker run --name postgresql -d \
-e 'DB_USER=username' \
-e 'DB_PASS=ridiculously-complex_password1' \
-e 'DB_NAME=my_database' \
-e 'POSTGRESQL_USER=username' \
-e 'POSTGRESQL_PASSWORD=ridiculously-complex_password1' \
-e 'POSTGRESQL_DATABASE=my_database' \
<yourname>/postgresql

To connect to your database with your newly created user:
Expand Down

0 comments on commit 13e6933

Please sign in to comment.