Docker always expose port 3000 #1904
-
Environment
Description of issueI have two instances of postgrest. one of them do not use the 3000 port, but the port is still exposed.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
How are you running your containers? Why not build your
|
Beta Was this translation helpful? Give feedback.
How are you running your containers? Why not build your
pgrest_2
image using port 3000 too, and then port-map when you run the container? This is the usual pattern I have seen. Gets around the port collision neatly while allowing your containers to be built consistently 😄