-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathcompose.yml
70 lines (59 loc) · 1.91 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: telegram-ytdl
services:
telegram-bot:
image: ghcr.io/vaaski/telegram-ytdl:latest
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://telegram-bot-api:8081"
TELEGRAM_WEBHOOK_PORT: "8443"
TELEGRAM_WEBHOOK_URL: "http://telegram-bot: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: ""
# provide your cobalt instance url (optional, can be left as-is for the default compose.yml)
COBALT_INSTANCE_URL: "http://cobalt:9000"
depends_on:
telegram-bot-api:
condition: service_healthy
cobalt:
condition: service_healthy
telegram-bot-api:
image: ghcr.io/bots-house/docker-telegram-bot-api:latest
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
- --local
volumes:
- telegram-bot-server-data:/var/lib/telegram-bot-api
healthcheck:
test: ["CMD-SHELL", "nc -z 127.0.0.1 8081 || exit 1"]
interval: 5s
timeout: 30s
retries: 3
cobalt:
image: ghcr.io/imputnet/cobalt:10
restart: unless-stopped
environment:
- API_URL=http://cobalt:9000
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:9000"]
interval: 5s
timeout: 30s
retries: 3
volumes:
telegram-bot-server-data:
driver: local