Update server infrastructure docs
This commit is contained in:
48
docs/ops.md
48
docs/ops.md
@@ -40,8 +40,11 @@ systemctl restart <service>.service
|
||||
| NPM | `npm-app.service` |
|
||||
| ASR | `asr.service` |
|
||||
| Reservation | `reservation.service` |
|
||||
| Telegram Reminder Bot | `telegram-reminder-bot.service` |
|
||||
| Telegram Calendar Bot | `telegram-calendar-bot.service` |
|
||||
| PostgreSQL | `postgres-main.service` |
|
||||
| MariaDB | `mariadb.service` |
|
||||
| Postfix Relay | `postfix.service` |
|
||||
|
||||
## 헬스체크
|
||||
|
||||
@@ -66,6 +69,12 @@ curl -sf http://localhost:8079/health
|
||||
|
||||
# Ollama
|
||||
curl -sf http://localhost:11434/api/version
|
||||
|
||||
# Reservation
|
||||
curl -sf http://10.89.0.22:3000/health
|
||||
|
||||
# Telegram Reminder Bot
|
||||
curl -sf http://10.89.0.23:8088/health
|
||||
```
|
||||
|
||||
## Podman 컨테이너 직접 조작
|
||||
@@ -113,6 +122,45 @@ podman exec --user git gitea gitea admin auth list
|
||||
podman exec --user git gitea gitea admin user create --admin --username <user> --email <email> --password <pass>
|
||||
```
|
||||
|
||||
## Telegram 봇 운영
|
||||
|
||||
### Telegram Reminder Bot
|
||||
|
||||
```bash
|
||||
cd /root/telegram-reminder-bot
|
||||
|
||||
# 상태 확인
|
||||
./scripts/status.sh
|
||||
|
||||
# 코드 업데이트/이미지 재빌드/서비스 재시작
|
||||
./scripts/update.sh
|
||||
|
||||
# 컨테이너 로그
|
||||
podman logs -f telegram-reminder-bot
|
||||
|
||||
# 헬스체크
|
||||
curl -sf http://10.89.0.23:8088/health
|
||||
```
|
||||
|
||||
운영 메모:
|
||||
|
||||
- 런타임 설정 파일: `/podman/data/telegram-reminder-bot/data/runtime.env`
|
||||
- DB: `postgres-main`의 `telegram_reminder`
|
||||
- 이전 SQLite 파일/백업은 `/podman/data/telegram-reminder-bot/data/`에 남아 있을 수 있다.
|
||||
- 관리자 UI: `https://reminder.du5t.xyz/setup`
|
||||
|
||||
### Telegram Calendar Bot
|
||||
|
||||
```bash
|
||||
systemctl status telegram-calendar-bot.service
|
||||
podman logs -f telegram-calendar-bot
|
||||
```
|
||||
|
||||
운영 메모:
|
||||
|
||||
- 환경파일: `/podman/data/telegram-calendar-bot/.env`
|
||||
- Nextcloud CalDAV와 연동한다.
|
||||
|
||||
## Authentik 관리
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user