mirror of
https://github.com/tiennm99/openai-status-bot.git
synced 2026-10-16 10:15:18 +00:00
fix(deploy): harden health and status config
This commit is contained in:
1 parent
956b2a98b4
commit
9f5a594cf7
14 files changed
+109
-46
No files matched your search
+5
-1
@@ -15,6 +15,8 @@ cp .env.example .env
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
The bundled Redis service is for local development and binds to `127.0.0.1:6379` on the host.
|
||||
|
||||
## Bot-Only Docker Run
|
||||
|
||||
Use this when Redis is hosted outside Docker Compose:
|
||||
@@ -31,7 +33,7 @@ docker compose -f docker-compose.bot.yml up -d --build
|
||||
Start Redis:
|
||||
|
||||
```bash
|
||||
docker run --rm -p 6379:6379 redis:7-alpine
|
||||
docker run --rm -p 127.0.0.1:6379:6379 redis:7-alpine
|
||||
```
|
||||
|
||||
Run bot:
|
||||
@@ -51,3 +53,5 @@ go build -o /tmp/openai-status-bot ./cmd/openai-status-bot
|
||||
```
|
||||
|
||||
Then send `/start` to the Telegram bot and run `/status`. If the same token was previously used by a webhook deployment, startup clears that webhook before long polling begins.
|
||||
|
||||
Docker images include a health check against `http://127.0.0.1:8080/healthz` inside the container.
|
||||
Reference in new issue
Block a user