Telegram Bot and Admin Panel for Merch Store.
This project is configured for deployment using Docker.
- Dokploy installed on your server.
- PostgreSQL database (Supabase or local).
- Telegram Bot Token.
Set the following environment variables in Dokploy:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
TELEGRAM_BOT_TOKEN=your_bot_token
ADMIN_PASSWORD=your_admin_passwordThe Dockerfile is set up to run the Next.js application by default.
To run the Telegram Bot: You need to run a separate service or worker with the command:
npm run start:botIn Dokploy, you can create a second service pointing to the same repository but overriding the "Start Command" or "Docker Command" to run the bot script.
Alternatively, you can use a custom entrypoint to run both, but running separate services is recommended for stability.