Files
openai-status-bot/docker-compose.bot.yml
T
tiennm99 546e6fcde2 refactor(store): replace Redis with MongoDB datastore
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.
2026-06-26 13:41:16 +07:00

10 lines
283 B
YAML

# Production runtime: bot only, connecting to the shared Atlas cluster via .env.
# Uses the production database (MONGODB_DATABASE in .env, default
# openai_status_bot). There is no local datastore.
services:
bot:
build: .
env_file:
- .env
restart: unless-stopped