Skip to content

Commit

Permalink
fix(examples): do not publish postgres port
Browse files Browse the repository at this point in the history
Only the broker needs access to the postgres instance, so there is no need
to publish the ports. One big advantage of this is, that if the user
already runs a postgres instance the service inside docker will not interfere
with it and the broker will start correctly.
  • Loading branch information
individual-it authored and JP-Ellis committed Oct 7, 2024
1 parent 4d1dca2 commit 5ec3c90
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ version: "3.9"
services:
postgres:
image: postgres
ports:
- "5432:5432"
healthcheck:
test: psql postgres -U postgres --command 'SELECT 1'
environment:
Expand Down

0 comments on commit 5ec3c90

Please sign in to comment.