Add Telegram Bot API service to mini-pc
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
TELEGRAM_API_ID=123456
|
||||
TELEGRAM_API_HASH=changeme
|
||||
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
telegram-bot-api:
|
||||
image: aiogram/telegram-bot-api:latest
|
||||
container_name: telegram-bot-api
|
||||
hostname: telegram-bot-api
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
TELEGRAM_HTTP_PORT: "8081"
|
||||
TELEGRAM_LOCAL: "1"
|
||||
TELEGRAM_PROXY: http://192.168.1.10:20171
|
||||
HTTP_PROXY: http://192.168.1.10:20171
|
||||
HTTPS_PROXY: http://192.168.1.10:20171
|
||||
NO_PROXY: localhost,127.0.0.1,telegram-bot-api,uptime-kuma
|
||||
volumes:
|
||||
- /opt/data/telegram-bot-api:/var/lib/telegram-bot-api
|
||||
networks:
|
||||
- telegram-bot-api
|
||||
|
||||
networks:
|
||||
telegram-bot-api:
|
||||
name: telegram-bot-api
|
||||
@@ -10,4 +10,10 @@ services:
|
||||
TZ: Europe/Moscow
|
||||
volumes:
|
||||
- /opt/data/uptime-kuma:/app/data
|
||||
networks: {}
|
||||
networks:
|
||||
- default
|
||||
- telegram-bot-api
|
||||
networks:
|
||||
default:
|
||||
telegram-bot-api:
|
||||
external: true
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
"d /opt/data/adguard/work 0755 ada users - -"
|
||||
"d /opt/data/caddy 0755 ada users - -"
|
||||
"d /opt/data/gitea-runner 0755 ada users - -"
|
||||
"d /opt/data/telegram-bot-api 0755 ada users - -"
|
||||
"d /opt/data/uptime-kuma 0755 ada users - -"
|
||||
"d /opt/data/vaultwarden 0755 ada users - -"
|
||||
"d /opt/data/zerotier 0755 ada users - -"
|
||||
|
||||
Reference in New Issue
Block a user