mirror of
https://github.com/tiennm99/openai-status-bot.git
synced 2026-09-20 04:23:48 +00:00
build(compose): use canonical compose files
This commit is contained in:
1 parent
70ecf12498
commit
96f1c2ecc4
4 files changed
+18
-18
No files matched your search
+5
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user