forked from huliyoudiangou/TG_Chat_Bot-D1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 987 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 987 Bytes
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
version: '3.8'
services:
tg-bot:
build: .
container_name: tg-chat-bot
restart: unless-stopped
ports:
- "${PORT:-3000}:3000"
environment:
- BOT_TOKEN=${BOT_TOKEN}
- ADMIN_IDS=${ADMIN_IDS}
- ADMIN_GROUP_ID=${ADMIN_GROUP_ID}
- WORKER_URL=${WORKER_URL}
- TURNSTILE_SITE_KEY=${TURNSTILE_SITE_KEY:-}
- TURNSTILE_SECRET_KEY=${TURNSTILE_SECRET_KEY:-}
- RECAPTCHA_SITE_KEY=${RECAPTCHA_SITE_KEY:-}
- RECAPTCHA_SECRET_KEY=${RECAPTCHA_SECRET_KEY:-}
- DB_PATH=/app/data/bot.db
- TZ=Asia/Shanghai
- WEBHOOK_SECRET=${WEBHOOK_SECRET:-}
volumes:
- bot_data:/app/data
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
bot_data:
driver: local