Sign inSign up

cleverest/wecom-admin

By cleverest

Updated 3 months ago

Image
0

216

cleverest/wecom-admin repository overview

GitHub项目地址:https://github.com/iCloudBot/wecom-admin

# 1. 拉取代码
git clone https://github.com/iCloudBot/wecom-admin

🐳 Docker 部署

方式一:Docker Compose(推荐)
# 1. 复制并配置环境变量
cd wecom-admin
cp .env.example .env
# 编辑 .env,将 SECRET_KEY 替换为强随机密钥
# 生成方法:python -c "import secrets; print(secrets.token_hex(32))"

# 2. 构建并启动
docker compose up -d

# 3. 查看日志
docker compose logs -f

# 4. 停止服务
docker compose down

# 5. 停止并清除数据卷(数据将丢失,谨慎使用)
docker compose down -v

服务启动后访问 http://localhost:5000

方式二:手动 Docker 命令
# 构建镜像
docker build -t wecom-admin:latest .

# 创建数据卷
docker volume create wecom_data

# 运行容器
docker run -d \
  --name wecom-admin \
  --restart unless-stopped \
  -p 5000:5000 \
  -v wecom_data:/app/data \
  -e SECRET_KEY=your-strong-secret-key \
  -e TZ=Asia/Shanghai \
  cleverest/wecom-admin:latest

# 查看日志
docker logs -f wecom-admin

Tag summary

Content type

Image

Digest

sha256:a343a2071

Size

39.7 MB

Last updated

3 months ago

docker pull cleverest/wecom-admin