From 42417d71acfbe480529554b53288e31a0580ec06 Mon Sep 17 00:00:00 2001 From: difome Date: Wed, 28 Jan 2026 05:22:32 +0200 Subject: [PATCH] update README.md --- .env.example | 1 + README.md | 5 +++++ docker-compose.yml | 11 +++++++++++ 3 files changed, 17 insertions(+) create mode 100644 docker-compose.yml diff --git a/.env.example b/.env.example index f5526e5..2032fd8 100644 --- a/.env.example +++ b/.env.example @@ -8,6 +8,7 @@ BOT_TOKEN=your_bot_token_here # Creator ID # Your Telegram user ID - the bot will recognize you as creator +# To get your ID: send /id command to the bot and use the "from id" value CREATOR_ID=your_user_id_here # ============================================ diff --git a/README.md b/README.md index 7fe6d07..14d6dd6 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,11 @@ npx drizzle-kit generate && npx drizzle-kit migrate npm run build && npm start ``` +**With Docker Compose:** +```bash +docker compose up -d +``` + **With Docker:** ```bash docker build -f Dockerfile -t tg-bot . diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..195d85c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +services: + tgchatbot: + container_name: tgchatbot + image: ghcr.io/melod1n/tg-chat-bot:latest + restart: unless-stopped + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Moscow + volumes: + - ./config:/config \ No newline at end of file