Deploy an app with TCP and HTTPI
samkingdev
HOBBYOP

2 years ago

I'm trying to deploy rabbitMQ which has both a TCP port an a HTTP port but you cannot expose both publicly.

The example comes with a proxy but that's not working, can anyone help?

41 Replies

samkingdev
HOBBYOP

2 years ago

e269f5dd-f1fb-40f1-9ea5-9b0a20b1c53a


2 years ago

at this time you can't expose a single service via tcp and https


2 years ago

i will look into why the template doesnt work


samkingdev
HOBBYOP

2 years ago

This is the error I'm getting

1275224583552893000


2 years ago

the project has no services?


2 years ago

can you deploy a fresh rabbitmq template so i can look for the issue?


samkingdev
HOBBYOP

2 years ago

I'm testing around with this project as I don't want to mess with my main project

e269f5dd-f1fb-40f1-9ea5-9b0a20b1c53a


2 years ago

in the test env?


samkingdev
HOBBYOP

2 years ago

Yeah


2 years ago

do i have your permission to also test in this env?


samkingdev
HOBBYOP

2 years ago

Yeah feel free


samkingdev
HOBBYOP

2 years ago

I just want to be able to access both the TCP port (5672) and the HTTP management port (15672) as I need to access the API as well


2 years ago

looks like it works now


2 years ago

check the activity panel to see what i changed


samkingdev
HOBBYOP

2 years ago

Do you know why the variable hasn't worked here?


samkingdev
HOBBYOP

2 years ago

As I was having issues previously with environment variables


2 years ago

its namespace was wrong


samkingdev
HOBBYOP

2 years ago

Now, I don't want to sound stupid but I think I've replicated this exactly in my dev environment and it's not working still…


2 years ago

looking


samkingdev
HOBBYOP

2 years ago

Thank you so much


samkingdev
HOBBYOP

2 years ago

Feel free to make any changes to test 👍


2 years ago

okay so thats a bit different since this was not deployed from a template


2 years ago

do you have a rabbitmq conf file in that monorepo?


samkingdev
HOBBYOP

2 years ago

Yeah this is my custom version of rabbitMQ with a plugin added on top. Here is my dockerfile

FROM rabbitmq:3-management-alpine as rabbitmq
COPY plugins plugins
RUN rabbitmq-plugins enable rabbitmq_message_deduplication

samkingdev
HOBBYOP

2 years ago

No, there is no rabbitmq conf file


2 years ago

thats all there is to the dockerfile in the rabbitmq folder?


samkingdev
HOBBYOP

2 years ago

Yeah


samkingdev
HOBBYOP

2 years ago

There is a plugins folder also in that rabbitmq folder which has a message deduplication plugin in and it copies it accross


2 years ago

do you know what the difference is between 3-management-alpine and just management-alpine are?


2 years ago

nvm the hash says they are the same


samkingdev
HOBBYOP

2 years ago

It just specifies the latest version 3 of rabbitMQ since a new v4 is in the RC stage so is coming out soon.


samkingdev
HOBBYOP

2 years ago

I just spotted the same start command difference as well <:Fingers:1202140286956867644>


2 years ago

yeah its working now, so ill explain


2 years ago

/bin/sh -c "echo management.tcp.ip = :: >> /etc/rabbitmq/conf.d/10-defaults.conf && docker-entrypoint.sh rabbitmq-server"

this start command dynamically modifies the rabbitmq conf file to have the management interface listen on ipv6, instead of the default ipv4 interface.
this is needed since the private network is ipv6 only.


samkingdev
HOBBYOP

2 years ago

Oh, amazing thank you. Very useful to know!


2 years ago

no problem, let me know if you have any more questions!


samkingdev
HOBBYOP

2 years ago

Shall do thank you


2 years ago

no problem!


Anonymous
HOBBY

a year ago

I wanted to put a rabbitmq on my railway, but it's not appearing when I click on new, what do I do?


a year ago

please open your own thread


Anonymous
HOBBY

a year ago

ah desculpa.


Loading...