2024-07-29 17:26:39 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
telegram-bot-api:
|
2024-08-15 18:05:32 +08:00
|
|
|
image: aiogram/telegram-bot-api:7.9
|
2024-07-29 17:26:39 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTPS}:8081
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:8082
|
|
|
|
env_file:
|
|
|
|
- /etc/1panel/envs/global.env
|
|
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
|
|
volumes:
|
|
|
|
- ${TELEGRAM_BOT_API_ROOT_PATH}/data:/var/lib/telegram-bot-api
|
|
|
|
- ${TELEGRAM_BOT_API_ROOT_PATH}/logs:/var/log/telegram-bot-api
|
|
|
|
environment:
|
|
|
|
- TELEGRAM_STAT=1
|
|
|
|
- TELEGRAM_LOCAL=1
|
|
|
|
- TELEGRAM_VERBOSITY=1
|
|
|
|
- TELEGRAM_MAX_WEBHOOK_CONNECTIONS=100000
|
|
|
|
- TELEGRAM_LOG_FILE=/var/log/telegram-bot-api/telegram-bot-api.log
|
|
|
|
- TELEGRAM_MAX_CONNECTIONS=1024
|