mirror of
https://github.com/kemko/memes-telegram-integration.git
synced 2026-01-01 15:55:41 +03:00
doc: add docker-compose section to README (#41)
* doc: add docker-compose section to README * doc: fix formatting
This commit is contained in:
22
README.md
22
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.
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user