-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running PutsReq in production through Docker #68
Comments
Please note we had to bump the MongoDB image version as the given thing just crashed silently on our Debian GNU/Linux 10 (buster) machine. Also note that we adjusted the database volume definition because on the updated Docker image for MongoDB 3.6.17, there has apparently been no
|
Dear Pablo, we see that "localhost" is referenced at different places within the source tree. Most probably because the Docker-based setup is primarily suited for development setups, right? While we have seen webpacker.yml already, our knowledge is a bit limited on how to tune that or other files in order to compose an appropriate Docker image suitable to be run in production on a dedicated, full qualified hostname. So, as mentioned above, we are humbly asking if you could support us to properly saddle up the pony. Thanks already for taking the time and with kind regards, |
We have been able to make it work. ConfigurationWe are now using this
as well as this
External Docker volume FTWThe referenced external volume has been created by invoking:
The rationale for creating the external volume is https://stackoverflow.com/questions/53870416/data-does-not-persist-to-host-volume-with-docker-compose-yml-for-mongodb. Otherwise, data stored in MongoDB might get lost as already observed by @ddavtian within #51. Ready-made Docker image on Docker HubAdditionally, the Docker image on https://hub.docker.com/r/daqzilla/putsreq has been amended using the patch putsreq-production.patch.txt. While we recognize it is not the most performant way to compile and serve assets like that on a production instance (precompiling and serving them from a webserver in a static manner should be preferred), it perfectly fits our bill. Reverse-proxy configuration for NginxLast but not least, the Nginx snippet we use as a reverse proxy configuration is:
|
Hi @amotl Thank you. I'm happy you find it useful. The production version of PutsReq is deployed to Heroku, which makes it very straightforward to deploy Rails application. I've used the Docker setup mostly for local development. The localhost references in the
Nice, is it all set then? Would you like to add some instructions to the wiki or update the README with some references to share with others? |
That's true. The reason for that was a wrong Nginx configuration setting:
Absolutely. Thanks again!
That would be cool. I definitively prefer files over the Wiki and added a PR, see #70. |
Sure, let's close it. Thanks again! |
Dear Pablo,
first things first: Thank you so much for conceiving and maintaining PutsReq. @thiasB started using it and now we would to ramp up a dedicated instance for our beehive monitoring project, see https://hiveeyes.org/ and https://community.hiveeyes.org/.
We need it to transform HTTP requests originating from TTN to converge properly to our data acquisition backend running Kotori. @thiasB documented this specific telemetry path at TTN/LoRaWAN setup for Terkin, enjoy!
We have been able to get started with it already but humbly ask for further guidance to get things right.
With kind regards,
Andreas.
The text was updated successfully, but these errors were encountered: