一个 Telegram 消息镜像工具,可以将 Telegram 频道/群组的消息转发到其他频道或群组
创建 docker-compose.yml 文件
name: telemirror
services:
telemirror:
image: aliuq/telemirror:latest
restart: unless-stopped
environment:
- API_ID=
- API_HASH=
- SESSION_STRING=
- USE_MEMORY_DB=false
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/telemirror
- LOG_LEVEL=info
volumes:
- ./.configs:/app/.configs:ro
ports:
- '8000:8000'
depends_on:
- postgres
postgres:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_DB: telemirror
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./pg_data:/var/lib/postgresql/data
运行服务:
docker-compose up -d
# 克隆仓库
git clone https://github.com/aliuq/apps-image.git
cd apps-image/apps/telemirror
# 构建镜像
docker buildx build -f ./Dockerfile -t telemirror:local --load .
# 运行测试
docker run --rm --name telemirror-local -p 8000:8000 telemirror:local
# 显示详细构建日志
docker buildx build --progress=plain -f ./Dockerfile -t telemirror:debug --no-cache --load .
📝 该文档由 AI 辅助生成并整理,如有问题请随时反馈
Content type
Image
Digest
sha256:c28298018…
Size
66.9 MB
Last updated
12 days ago
docker pull aliuq/telemirror