Skip to content

Setting port for PostgreSqlContainer #763

Answered by cristianrgreco
grug asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, the port is set to 5432 in the constructor, and so is overridable.
Just invoke withExposedPorts on the Postgres container.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@grug
Comment options

@grug
Comment options

Answer selected by grug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants