Skip to content

Commit

Permalink
fix: test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Aug 12, 2024
1 parent 463320d commit a83e169
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ services:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=spacetraders
# Only expose the port to other containers.
# Expose the port to other containers.
expose: [5432]
# Carefully *only* expose the port to localhost (for test scripts).
ports: ["127.0.0.1:5432:5432"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
Expand Down

0 comments on commit a83e169

Please sign in to comment.