devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! Two engines: chromium-based WEBJS and pure-websocket NOWEB
https://waha.devlike.pro/
Apache License 2.0
831 stars 254 forks source link

deploy on RunPod serverless #239

Closed Josukje closed 7 months ago

Josukje commented 7 months ago

is there a way to deploy on runpod, cuz I wanna use it for production.

allburov commented 7 months ago

Hi! it can be deployed on any environment with docker support.

If you want to save sessions between restart - you need to have a file volume outside of container to run the command below:

We're working on remote storage for sessions yet https://github.com/devlikeapro/whatsapp-http-api/issues/41

devlikepro commented 4 months ago

Hi! We know that it's been more then a year since the request was requested, but we're happy to announce MongoDB remote storage for authentication data is available in 2023.4.2 version!

This feature is now available as part of the WAHA Plus offering.

We have documented the feature and its usage in our documentation, available at Session Storage.


To get started with the MongoDB storage, you can follow these simple steps:

First, start the MongoDB server by running the following command:

docker run -d -p 27017:27017 --name mongodb mongo

Next, initiate the WAHA with the WHATSAPP_SESSIONS_MONGO_URL environment variable, and note the use of the --network host option as well:

docker run -e WHATSAPP_SESSIONS_MONGO_URL=mongodb://localhost:27017/ --network host devlikeapro/whatsapp-http-api-plus

Following these steps, you will have successfully configured the MongoDB storage for WAHA. All session authentication data will now be stored in the MongoDB database.

For those of you eager to test this new feature, we would like to stress the importance of thoroughly testing MongoDB storage before deploying it in any production-related infrastructure.

patron:PRO