fix(config): align mongodb database names

This commit is contained in:
tiennm99 committed 2026-06-27 16:26:37 +07:00
1 parent b13a976ab0
commit 259b2dfdbd
8 files changed
+15 -15

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@
cp .env.example .env
# set TELEGRAM_BOT_TOKEN in .env
# set MONGODB_URI to your MongoDB Atlas connection string
# docker compose sets MONGODB_DATABASE=development for local development
# docker compose sets MONGODB_DATABASE=openai-status-bot-development for local development
docker compose -f compose.dev.yaml up --build
```
@@ -26,7 +26,7 @@ Use this for production deployment:
cp .env.example .env
# set TELEGRAM_BOT_TOKEN in .env
# set MONGODB_URI to your MongoDB Atlas connection string
# MONGODB_DATABASE defaults to openai_status_bot (production)
# MONGODB_DATABASE defaults to openai-status-bot (production)
docker compose up -d --build
```
@@ -37,7 +37,7 @@ cp .env.example .env
# set TELEGRAM_BOT_TOKEN in .env
# set MONGODB_URI to your MongoDB Atlas connection string
# export TELEGRAM_BOT_TOKEN or source .env with your shell workflow
# MONGODB_DATABASE defaults to openai_status_bot
# MONGODB_DATABASE defaults to openai-status-bot
go run ./cmd/openai-status-bot
```
+1 -1
View File
@@ -41,7 +41,7 @@ The service uses Telegram `getUpdates` through `github.com/go-telegram/bot`, so
`telegramOffset` stores the next update ID to resume from. Because `go-telegram/bot` stores the last seen update internally and sends `lastUpdateID + 1` to Telegram, startup passes `telegramOffset - 1` as the initial framework offset when a saved offset exists. The command handler saves `update.ID + 1` after every message update, including non-command messages.
MongoDB is configured with `MONGODB_URI` and `MONGODB_DATABASE` (default `openai_status_bot`). The OpenAI status source is fixed to `https://status.openai.com`. Docker Compose starts the bot connecting to a managed MongoDB Atlas cluster; there is no bundled local MongoDB service.
MongoDB is configured with `MONGODB_URI` and `MONGODB_DATABASE` (production default `openai-status-bot`; development Compose override `openai-status-bot-development`). The OpenAI status source is fixed to `https://status.openai.com`. Docker Compose starts the bot connecting to a managed MongoDB Atlas cluster; there is no bundled local MongoDB service.
## Failure Behavior