FoxxMD / context-mod

an event-based, reddit moderation bot built on top of snoowrap and written in typescript
https://contextmod.dev
MIT License
49 stars 11 forks source link

Add docker-compose #102

Open FoxxMD opened 2 years ago

FoxxMD commented 2 years ago

It's about time I made a production-ready one-click setup for CM.

CM can be run as-is, without docker-compose, because it uses sensible defaults and can generate dependencies as plain files (sqlite db) or use memory (memory cache) when none is provided.

However, to run in production, CM really should have proper databases and cache dependencies to in order to scale properly. DB should be mysql/postgres and cache should be Redis.

Additionally, adding (optional) reverse image/full text search would require elasticsearch as a dependency #101 without a substitute available.

A docker-compose file would make all these production dependencies available with one-click setup and I can make sure they are configured correctly.

FoxxMD commented 1 year ago

Implemented in e11a1d2a52abec1de50efa76bb3f9262168f1685