- Add chat_id to events, settings, and days_off for per-user data - Add proper graceful shutdown (signal handling, WaitGroup) - Separate polling and webhook modes with goroutine management - Add schema migration from single-user to multi-user schema - Refactor handlers with shared actionFunc pattern (msg + callback) - Fix schema path for Docker deployment (/app/db/schema.sql) - Remove emoji from output text for cleaner formatting
27 lines
509 B
YAML
27 lines
509 B
YAML
services:
|
|
worktime-bot:
|
|
build:
|
|
context: .
|
|
args:
|
|
HTTP_PROXY: http://192.168.100.2:10808
|
|
HTTPS_PROXY: http://192.168.100.2:10808
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- BOT_TOKEN=${BOT_TOKEN}
|
|
- HTTP_PROXY=${HTTP_PROXY-}
|
|
- HTTPS_PROXY=${HTTPS_PROXY-}
|
|
- DB_PATH=/data/db.sqlite3
|
|
- TZ=Asia/Tehran
|
|
volumes:
|
|
- worktime_data:/data
|
|
|
|
networks:
|
|
default:
|
|
name: proxy_net
|
|
external: true
|
|
|
|
volumes:
|
|
worktime_data:
|
|
driver: local
|