Use host networking for telegram bot API
Deploy mini-pc / deploy (push) Successful in 40s

This commit is contained in:
Dmitry
2026-05-31 15:10:07 +03:00
parent df9f965f38
commit 8dbca5368d
2 changed files with 2 additions and 15 deletions
+1 -8
View File
@@ -4,6 +4,7 @@ services:
container_name: telegram-bot-api
hostname: telegram-bot-api
restart: unless-stopped
network_mode: host
env_file:
- .env
environment:
@@ -13,13 +14,5 @@ services:
HTTP_PROXY: http://192.168.1.10:10172
HTTPS_PROXY: http://192.168.1.10:10172
NO_PROXY: localhost,127.0.0.1,telegram-bot-api,uptime-kuma
ports:
- "8081:8081"
volumes:
- /opt/data/telegram-bot-api:/var/lib/telegram-bot-api
networks:
- telegram-bot-api
networks:
telegram-bot-api:
name: telegram-bot-api
+1 -7
View File
@@ -10,10 +10,4 @@ services:
TZ: Europe/Moscow
volumes:
- /opt/data/uptime-kuma:/app/data
networks:
- default
- telegram-bot-api
networks:
default:
telegram-bot-api:
external: true
networks: {}