Skip to content

Commit

Permalink
Merge pull request mozilla-services#4278 from Osmose/expose-database
Browse files Browse the repository at this point in the history
Expose postgres on a port to make connecting via a client easier.
  • Loading branch information
Osmose authored Jan 10, 2018
2 parents 45f714c + e35771f commit 59e62f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ services:
# https://hub.docker.com/_/postgres/
postgresql:
image: postgres:9.4
ports:
- "8574:5432"
environment:
# Create the superuser account
- POSTGRES_USER=postgres
Expand Down
12 changes: 12 additions & 0 deletions docs/howto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ You can run the crontabber job that checks for security vulnerabilities locally:
make dockerdependencycheck


Connect to PostgreSQL Database
==============================

The local development environment's PostgreSQL database exposes itself on a
non-standard port when run with docker-compose. You can connect to it with
the client of your choice using the following connection settings:

* Username: ``postgres``
* Password: ``aPassword``
* Port: ``8574``


.. Warning::

August 17th, 2017: Everything below this point is outdated.
Expand Down

0 comments on commit 59e62f6

Please sign in to comment.