You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker run -e apiKey="YOUR_TELEGRAM_BOT_TOKEN" -p 8080:8080 releaseinformerbot
101
-
```
102
-
103
-
### Option 3: Docker Compose (Complete Setup)
104
-
105
-
1.**Start services**:
106
-
```bash
107
-
docker compose up -d
108
-
```
109
-
110
-
2.**Set your bot token**:
111
-
```bash
112
-
# Edit docker-compose.yml or set environment variable
113
-
export apiKey="YOUR_TELEGRAM_BOT_TOKEN"
114
-
docker compose up app
115
-
```
116
-
117
91
### Production Configuration
118
92
119
93
For production deployments, ensure:
@@ -124,7 +98,15 @@ For production deployments, ensure:
124
98
125
99
## CouchDB Setup
126
100
127
-
The bot requires the following CouchDB views for efficient data access:
101
+
The bot will automatically create the required CouchDB database (`release_bot`) and design document with the necessary views on startup.
102
+
103
+
**Automatic Setup:**
104
+
105
+
- The `DBManager` includes a `setupIfNeed()` method that checks for the existence of the database and required views, and creates them if they do not exist. No manual setup is required for most users—just ensure your CouchDB instance is running and credentials are configured in `DBManager.swift`.
106
+
107
+
**Manual Setup (optional):**
108
+
109
+
If you prefer to create the database and design document manually, use the following JSON for the design document:
0 commit comments