सेल्फ-होस्टिंग गाइड
स्थानीय वातावरण या सरल एकल-सर्वर सेटअप को लक्षित करने वाले डॉकर का उपयोग करके मिनटों में अपने स्वयं के बुनियादी ढांचे पर ट्रैकेबल्स को तैनात करें।
जिसकी आपको जरूरत है
To get started locally, you'll need Docker installed along with Docker Compose. You will also need a free Clerk account for user authentication, even for private deployments. Trackables uses Clerk to handle secure sessions, 2FA, and identity administration out of the box.
क्लर्क सेटअप
Create a new application in your Clerk dashboard. Once created, locate your Publishable Key and Secret Key from the API Keys page. Keep these handy for the .env file.
उपयोगकर्ता सिंक के लिए क्लर्क वेबहुक
Trackables syncs user data to its local database using webhooks. In the Clerk dashboard, navigate to Webhooks and create a new endpoint.
- Endpoint URL:
https://<your-domain>/api/clerk/webhook(If testing fully local without a tunnel, you can use a tool like ngrok or localtunnel, or disable local webhook validation during dev). - Events to listen to:
user.created,user.updated,user.deleted.
Upon saving, reveal the Signing Secret starting with whsec_ and save it for the .env file.
डेटाबेस और रेडिस कनेक्शन
Trackables requires PostgreSQL as the primary data store and Redis for caching and job queuing. The provided Docker Compose handles both automatically, mapping them respectively to default ports. For production, you may choose to use managed services.
अपनी तैनाती कॉन्फ़िगर करें
प्रत्येक config.json फ़ील्ड की समीक्षा करें - सीमाएँ, बिलिंग स्तर, वेबहुक और फ़ीचर फ़्लैग।
कॉन्फ़िग फ़ील्ड संदर्भ