poundifdef / smoothmq

An improved drop-in replacement for SQS
https://www.smoothmq.com
GNU Affero General Public License v3.0
2.04k stars 35 forks source link

Enhance Docker/Kubernetes Compatibility: Consider Moving Database to Subdirectory #19

Closed mzehrer closed 2 months ago

mzehrer commented 2 months ago

I've been loving the project and I'm looking to deploy it in a Docker/Kubernetes environment. I had a thought that might make this process smoother for others too:

Would it be possible to move the database to a subdirectory within the project structure? This small change could greatly simplify deploying smoothMQ in containerized environments like Docker and Kubernetes.

poundifdef commented 2 months ago

Thanks for the suggestion! I've just pushed a change to allow you to configure the file location. Does this help?

https://github.com/poundifdef/SmoothMQ/blob/main/config.yaml#L14-L15

mzehrer commented 2 months ago

This looks great. Thank you! Is there a way to override these configurations from the TOML file with environment variables?

poundifdef commented 2 months ago

Yep, just added that here https://github.com/poundifdef/SmoothMQ/commit/29908e5cff5c7be40bfb127cd74b719bed8c760b

You can either set the Q_SQLITE_PATH env var or specify a --sqlite-path argument.

If you run go run . server --help then you can see all of the config options along with how to set them via the an argument or an env var.

Thanks for pointing this out!