doc: add docker-compose section to README (#41)

* doc: add docker-compose section to README

* doc: fix formatting
This commit is contained in:
Oleg Kainov
2024-08-13 16:07:36 +02:00
committed by GitHub
parent 8c08c4d587
commit b54a55803f

View File

@@ -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. 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 ### Interaction Commands
- `/start <access_token>`: Start the bot with your Memos access token. - `/start <access_token>`: Start the bot with your Memos access token.