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.