From 957333cf5dcdf2b9f013cf159e492639cb8510ff Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 10 Mar 2024 05:46:13 +0300 Subject: [PATCH 1/3] telegram-llm-bot draft. --- README.md | 1 + telegram-llm-bot/.env.dist | 8 ++++++++ telegram-llm-bot/docker-compose.yml | 16 ++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 telegram-llm-bot/.env.dist create mode 100644 telegram-llm-bot/docker-compose.yml diff --git a/README.md b/README.md index 5958fdc..37aa521 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ Not every stack is tested to fully work. | Speedtest | ✅ | `adolfintel/speedtest` | Libre speed test implementation. | [Website](https://librespeed.org), [Github](https://github.com/librespeed/speedtest) | | Synapse | ✅ | `matrixdotorg/synapse` | Matrix reference server written in Python. | [Website](https://matrix.org/docs/projects/server/synapse), [Github](https://github.com/matrix-org/synapse), [Installation and configuration](https://matrix-org.github.io/synapse/latest/setup/installation.html) | | Syncthing | ✅ | `linuxserver/syncthing` | P2P file synchronization daemon. | [Website](https://syncthing.net), [Github](https://github.com/syncthing/syncthing) | +| Telegram LLM Bot | ✅ | `skobkin/telegram-llm-bot` | Simple Telegram bot to interact with LLM running in Ollama | [Forgejo repository](https://git.skobk.in/skobkin/telegram-ollama-reply-bot) | | Telegram RSS Bot | ✅ | `miroslavsckaya/tg-rss-bot` | Telegram RSS Bot by @Miroslavsckaya. | [Gitea](https://git.skobk.in/Miroslavsckaya/tg_rss_bot/), [Github Mirror](https://github.com/Miroslavsckaya/tg_rss_bot) | | Tor OBFS4 Bridge | ✅ | `thetorproject/obfs4-bridge` | Tor OBFS4 Bridge for Tor blocking bypass. | [Website](https://community.torproject.org/relay/setup/bridge/), [Gitlab](https://gitlab.torproject.org/tpo/anti-censorship/docker-obfs4-bridge), [Manual](https://community.torproject.org/relay/setup/bridge/docker/) | | Tor Privoxy | ✅ | `registry.gitlab.com/skobkin/torproxy-obfs4` | Tor image with integrated privoxy and OBFS4 bridge support. | [Original image Github](https://github.com/dperson/torproxy), [OBFS4 support image Gitlab](https://gitlab.com/skobkin/torproxy-obfs4) | diff --git a/telegram-llm-bot/.env.dist b/telegram-llm-bot/.env.dist new file mode 100644 index 0000000..1f8f999 --- /dev/null +++ b/telegram-llm-bot/.env.dist @@ -0,0 +1,8 @@ +# see https://hub.docker.com/r/skobkin/telegram-llm-bot + +TELEGRAM_TOKEN=12345 +OLLAMA_TOKEN=12345 +OLLAMA_BASE_URL=http://host.docker.internal:11434 + +LOG_MAX_SIZE=5m +LOG_MAX_FILE=5 diff --git a/telegram-llm-bot/docker-compose.yml b/telegram-llm-bot/docker-compose.yml new file mode 100644 index 0000000..dd5501d --- /dev/null +++ b/telegram-llm-bot/docker-compose.yml @@ -0,0 +1,16 @@ +# https://hub.docker.com/r/skobkin/telegram-llm-bot +version: '3.9' + +services: + drone: + image: "skobkin/telegram-llm-bot:${IMAGE_VERSION:latest}" + container_name: telegram-llm-bot + extra_hosts: + - "host.docker.internal:host-gateway" + env_file: .env + restart: unless-stopped + logging: + driver: "json-file" + options: + max-size: "${LOG_MAX_SIZE:-5m}" + max-file: "${LOG_MAX_FILE:-5}" -- 2.43.5 From 1d8024f84a3be5dd88d2baba72c67002ae30e190 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 10 Mar 2024 05:48:47 +0300 Subject: [PATCH 2/3] telegram-llm-bot fixing tag syntax. --- telegram-llm-bot/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram-llm-bot/docker-compose.yml b/telegram-llm-bot/docker-compose.yml index dd5501d..e88779c 100644 --- a/telegram-llm-bot/docker-compose.yml +++ b/telegram-llm-bot/docker-compose.yml @@ -3,7 +3,7 @@ version: '3.9' services: drone: - image: "skobkin/telegram-llm-bot:${IMAGE_VERSION:latest}" + image: "skobkin/telegram-llm-bot:${IMAGE_VERSION:-latest}" container_name: telegram-llm-bot extra_hosts: - "host.docker.internal:host-gateway" -- 2.43.5 From 49a65b7ff88cc2f6e16cdfb569ecf5a9079afd30 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 10 Mar 2024 05:49:33 +0300 Subject: [PATCH 3/3] telegram-llm-bot service name fix. --- telegram-llm-bot/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram-llm-bot/docker-compose.yml b/telegram-llm-bot/docker-compose.yml index e88779c..c52a05c 100644 --- a/telegram-llm-bot/docker-compose.yml +++ b/telegram-llm-bot/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.9' services: - drone: + telegram-llm-bot: image: "skobkin/telegram-llm-bot:${IMAGE_VERSION:-latest}" container_name: telegram-llm-bot extra_hosts: -- 2.43.5