build(compose): use canonical compose files

This commit is contained in:
tiennm99 committed 2026-06-27 15:11:00 +07:00
1 parent 70ecf12498
commit 96f1c2ecc4
4 files changed
+18 -18

No files matched your search

+5 -5
View File
@@ -6,19 +6,19 @@
- MongoDB Atlas cluster (managed, no local MongoDB service required)
- Telegram bot token from BotFather
## Local Docker Run
## Development Docker Run
```bash
cp .env.example .env
# set TELEGRAM_BOT_TOKEN in .env
# set MONGODB_URI to your MongoDB Atlas connection string
# docker compose sets MONGODB_DATABASE=openai_status_bot_dev for local development
docker compose up --build
# docker compose sets MONGODB_DATABASE=development for local development
docker compose -f compose.dev.yaml up --build
```
The Docker Compose service connects to MongoDB Atlas; there is no bundled local MongoDB. Ensure `MONGODB_URI` is set in `.env`.
## Bot-Only Docker Run
## Production Docker Run
Use this for production deployment:
@@ -27,7 +27,7 @@ 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)
docker compose -f docker-compose.bot.yml up -d --build
docker compose up -d --build
```
## Local Go Run