How do I expose multiple ports between containers?
petegoodison
HOBBYOP

a year ago

(Search on here returns zero i'm afraid)

I have a basic use case where a container (Qdrant) needs to expose 2 ports (6333 and 6334) to the backend container.

It would look like this in a docker compose:

  qdrant:
    image: qdrant/qdrant:latest
    container_name: myApp-qdrant
    ports:
      - "6333:6333"
      - "6334:6334"
etc...

I can't seem to work out how to do this in railway.

I have found the settings for external networks only.

Any help appreciated.

$10 Bounty

1 Replies

a year ago

Your docker container can expose as many ports as you want. And you just connect to them. I don't understand what's the problem.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...