Skip to content

Commit

Permalink
add pgsql password to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesaracil-ulti committed Mar 30, 2020
1 parent 64c2e2e commit a4caab7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TL;DR
.. code-block:: console
$ # Export libpq env vars for PG connection
$ export PGDATABASE=procrastinate PGHOST=localhost PGUSER=postgres
$ export PGDATABASE=procrastinate PGHOST=localhost PGUSER=postgres PGPASSWORD=password
$ # Start PostgreSQL in a Docker container
$ docker-compose up -d postgres
Expand Down Expand Up @@ -47,7 +47,7 @@ to the Docker setup. Feel free to adjust them as necessary.

.. code-block:: console
$ export PGDATABASE=procrastinate PGHOST=localhost PGUSER=postgres
$ export PGDATABASE=procrastinate PGHOST=localhost PGUSER=postgres PGPASSWORD=password
Create your development database
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
PGDATABASE: procrastinate
PGHOST: postgres
PGUSER: postgres
PGPASSWORD: password
depends_on:
- postgres
user: ${UID:-0}:${GID:-0}
Expand All @@ -19,3 +20,4 @@ services:
ports: ["5432:5432"]
environment:
POSTGRES_DB: procrastinate
POSTGRES_PASSWORD: password

0 comments on commit a4caab7

Please sign in to comment.