feat(deploy): add bot-only compose

This commit is contained in:
tiennm99 committed 2026-06-22 09:39:33 +07:00
1 parent 204a76a32d
commit aa425ec98d
3 files changed
+25

No files matched your search

+8
View File
@@ -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
+6
View File
@@ -0,0 +1,6 @@
services:
bot:
build: .
env_file:
- .env
restart: unless-stopped
+11
View File
@@ -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: