Skip to content

Repository files navigation

TechMerchBot

Telegram Bot and Admin Panel for Merch Store.

Deployment on Dokploy

This project is configured for deployment using Docker.

Prerequisites

  • Dokploy installed on your server.
  • PostgreSQL database (Supabase or local).
  • Telegram Bot Token.

Environment Variables

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_password

Running the Application

The 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:bot

In 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages