mirror of
https://github.com/tiennm99/openai-status-bot.git
synced 2026-07-15 12:21:17 +00:00
Swap the Redis datastore for MongoDB via mongo-driver v2. New internal/mongostore mirrors the old redisstore type/constant names so consumers change only the import qualifier; document model collapses the multi-key subscriber/settings and per-event delivery sets into single-doc operations and a TTL-indexed delivery collection. Config now requires MONGODB_URI (Atlas) with MONGODB_DATABASE selecting dev vs prod on one cluster; REDIS_URL removed. Compose files run bot-only against Atlas. Default tests stay Docker-free (poller/bot use fakes, mongostore unit tests are pure-logic); a gated //go:build integration suite covers the real backend via testcontainers.
12 lines
377 B
YAML
12 lines
377 B
YAML
# Development runtime: bot only, connecting to the shared Atlas cluster.
|
|
# There is no local datastore; set MONGODB_URI in .env. This file targets the
|
|
# development database (the MONGODB_DATABASE below overrides any .env value).
|
|
services:
|
|
bot:
|
|
build: .
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
MONGODB_DATABASE: openai_status_bot_dev
|
|
restart: unless-stopped
|