Skip to content

Commit

Permalink
export postgres port to host
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Aug 21, 2020
1 parent 8110844 commit 489c5ec
Showing 1 changed file with 2 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 @@ -4,6 +4,8 @@ services:
db:
image: postgres:12.3-alpine
restart: "always"
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD-Postgres123}
healthcheck:
Expand Down

2 comments on commit 489c5ec

@rkorytkowski
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to do that. If you want to connect to postgres on production environments ssh and use:
docker-compose exec db psql --username postgres

@snyaggarwal
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that. This was done for @harpatel1 specifically for I think FHIR work (or something else). I can revert this if @harpatel1 can figure out another way to connect

Please sign in to comment.