From b54a55803f8aafa65122d12b2472b7100b3aecb6 Mon Sep 17 00:00:00 2001 From: Oleg Kainov Date: Tue, 13 Aug 2024 16:07:36 +0200 Subject: [PATCH] doc: add docker-compose section to README (#41) * doc: add docker-compose section to README * doc: fix formatting --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 630296d..b41c66a 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,28 @@ Or you can start the service with Docker: 3. The Memogram service should now be running inside the Docker container. You can interact with it via your Telegram bot. +#### Starting with Docker Compose + +Or you can start the service with Docker Compose. This can be combined with the `memos` itself in the same compose file: + +1. Create a folder where the service will be located. +2. Clone this repository in a subfolder `git clone https://github.com/usememos/telegram-integration memogram` +3. Create `.env` file + ```sh + SERVER_ADDR=dns:yourMemosUrl.com:5230 + BOT_TOKEN=your_telegram_bot_token + ``` +4. Create Docker Compose `docker-compose.yml` file: + ```yaml + services: + memogram: + env_file: .env + build: memogram + container_name: memogram + ``` +5. Run the bot via `docker compose up -d` +6. The Memogram service should now be running inside the Docker container. You can interact with it via your Telegram bot. + ### Interaction Commands - `/start `: Start the bot with your Memos access token.