Skip to content

Commit 94cbd0c

Browse files
committed
added a note for port mapping
1 parent 7fd0852 commit 94cbd0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guides/use-case/pre-seeding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Make sure you stop any running Postgres containers (along with volumes) to preve
204204
205205
It maps port `5432` on the host to the container's `5432`, let you access to the Postgres database from outside the container. It also define `data_sql` for persisting the database data, ensuring that data is not lost when the container is stopped.
206206

207-
207+
It is important to note that the port mapping to the host is only necessary if you want to connect to the database from non-containerized programs. If you containerize the service that connects to the DB, you should connect to the database over a custom bridge network.
208208

209209
3. Bring up the Compose service.
210210

0 commit comments

Comments
 (0)