N
N
Nikita Dergachov2019-02-26 14:10:05
Node.js
Nikita Dergachov, 2019-02-26 14:10:05

How to make a separate private port for express in docker?

The node used for ssr vue.js uses the port 8080/tcp. You need to add a separate port, with a route, so that access is only inside docker.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
de1m, 2019-02-26
@de1m

If you mean that you need other containers to be able to access this port, then you need to link them, or you can make a shared network for them. Here it is described how to do it. This is written for docker-compose, if anything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question