Deployment Options #209
Replies: 5 comments 4 replies
-
Hey @JoeToeniskoetter . What I do is that I have a separate repository that serves as the broker. I have written scripts so that is uses certbot and Let'sEncrypt to generate certificates for SSL. I build everything into a docker image that then gets deployed to a GCP Compute Instance using Cloud Build. GCP Compute does not have any such limitations for raw TCP connections as what you described is the limitation for Digital Ocean. GCP Compute or AWS EC2s are fantastic for these types of things; however, I would not consider them the most "user friendly". |
Beta Was this translation helpful? Give feedback.
-
@dgduncan Ah nice! Digital Ocean also offers a bare VPS solution similar to GCP Compute. I just like the convenience of pointing to my github repo and clicking 'deploy'. Do you also have a REST/GraphQL API running on the same Compute instance? If so, how do you communicate between the broker and API servers? As far as the SSL certs, I'm not sure if it's possible but I believe I would need two different certs pairs in that instance. One for the API server that can be regularly refreshed, and one for the MQTT broker that is valid for a long time so the IoT devices that connect to it don't have to be re-flashed every time the cert expires. Unless I am misunderstanding SSL certs which is likely. |
Beta Was this translation helpful? Give feedback.
-
If either of you have any good out-of-the-box solutions for these deployments, I would be happy to add them to repo somehow 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
I have a bunch of services in a local development docker compose setup. I want to simply add the mochi as a service, this actually works really well (with some limitations)
This enough to get the
The most common workflow for my local docker services is to extend from a base (like this repository, baked into a default image), and then override some of the files and stuff. In more complex use cases, of course we make our own I guess that is not possible yet until the
If anyone has advice beyond what I reasoned above, I'd be happy to hear it! I'm not raising any problems or solutions here, just curious if anyone had any insight and also adding my use case to the discussion of deployments!
It is a bit hacky, but might work for the interim for my local work. The reason I am exploring this approach, is I need this to I also explored other Update: cloning it in the Dockerfile is actually very quick and easy, and will do for now! |
Beta Was this translation helpful? Give feedback.
-
I opened up a discussion thread for file based configuration here for anyone interested |
Beta Was this translation helpful? Give feedback.
-
Wondering what deployment options everyone is using. Having the option to embed this library into an existing go rest API was extremely attractive to me but I'm having a hard time figuring out a deployment strategy.
I was hoping to deploy the entire application (REST API with embedded MQTT broker) on something like Digital Ocean App Platform. Where the rest api would be accessible via
https://mydomain.com/api
and the broker would be available to my IOT devices viamydomain.com:1883
. Unfortunately it looks like DO app platform does not allow raw TCP connections.Any suggestions for platforms that would allow for this type of setup?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions