mirror of
https://github.com/tiennm99/openai-status-bot.git
synced 2026-10-11 03:13:41 +00:00
feat(deploy): add bot-only compose
This commit is contained in:
1 parent
204a76a32d
commit
aa425ec98d
3 files changed
+25
No files matched your search
@@ -36,6 +36,14 @@ cp .env.example .env
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
To deploy only the bot when Redis is hosted elsewhere:
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
# edit .env and set TELEGRAM_BOT_TOKEN plus REDIS_URL for the external Redis host
|
||||
docker compose -f docker-compose.bot.yml up -d --build
|
||||
```
|
||||
|
||||
For local development without Docker:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
bot:
|
||||
build: .
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
@@ -15,6 +15,17 @@ cp .env.example .env
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
## Bot-Only Docker Run
|
||||
|
||||
Use this when Redis is hosted outside Docker Compose:
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
# set TELEGRAM_BOT_TOKEN in .env
|
||||
# set REDIS_URL to the external Redis URL, not localhost
|
||||
docker compose -f docker-compose.bot.yml up -d --build
|
||||
```
|
||||
|
||||
## Local Go Run
|
||||
|
||||
Start Redis:
|
||||
|
||||
Reference in new issue
Block a user