-
Notifications
You must be signed in to change notification settings - Fork 16
/
compose.yml
50 lines (42 loc) · 1.31 KB
/
compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3.9"
services:
telegram-bot:
image: ghcr.io/vaaski/telegram-ytdl:latest
network_mode: host
restart: unless-stopped
volumes:
- vaaski-telegram-ytdl:/app/storage
environment:
# get your bot token from @BotFather
TELEGRAM_BOT_TOKEN: ""
# comma separated list of telegram user ids, leave empty to allow all users
WHITELISTED_IDS: "123456789,987654321"
# admin user id
ADMIN_ID: "123456789"
TELEGRAM_API_ROOT: "http://127.0.0.1:8081"
TELEGRAM_WEBHOOK_PORT: "8443"
TELEGRAM_WEBHOOK_URL: "http://127.0.0.1:8443"
# whether to automatically update yt-dlp
# defaults to "true", set to "false" to disable
YTDL_AUTOUPDATE: "true"
# provide your OpenAI API key to enable auto-translation (optional)
OPENAI_API_KEY: ""
telegram-bot-api:
image: ghcr.io/bots-house/docker-telegram-bot-api:latest
network_mode: host
restart: unless-stopped
environment:
# get these values from https://core.telegram.org/api/obtaining_api_id
TELEGRAM_API_ID: ""
TELEGRAM_API_HASH: ""
command:
- --dir=/var/lib/telegram-bot-api
#- --verbosity=2
- --local
volumes:
- server-data:/var/lib/telegram-bot-api
ports:
- 8081:8081
volumes:
server-data:
driver: local