Self-hosted subscription & renewal manager, 14 notify channels. 自托管订阅续费保号管理.
7.2K
Self-hosted subscription / renewal manager with 14 notification channels, so you never let a subscription — or a SIM keep-alive plan — expire.
自托管的订阅 / 续费 / 保号管理系统,通过 14 种通知渠道(Telegram、飞书、QQ、Bark、Email、Pushplus、Server酱、企业微信、钉钉、Discord、Slack、ntfy、Gotify、Webhook)提醒续费,避免因忘记而过期。
latest, vX.Y.Z per release — multi-arch linux/amd64 + linux/arm64ghcr.io/suyijun8182/easysub:latestguest / guest123)198.18.0.0/15. A blocked request now names the host, the address and the OUTBOUND_PRIVATE_ALLOWLIST entry to add.
修复 fake-ip 代理下通知被误拦;被拦截时提示会写明域名、地址和应加入白名单的 host:port。docker run -d --name easysub \
-p 8842:8000 \
-e EASYSUB_DB=sqlite \
-e TZ=Asia/Shanghai \
-v easysub_data:/app/data \
--restart unless-stopped \
suyijun8182/easysub:latest
Open http://<host>:8842 and register — the first account becomes the administrator. With EASYSUB_DB=sqlite the database is created on first start and the setup wizard is skipped. Keep the easysub_data volume: it holds the database, the auto-generated JWT key, icons and backups.
打开 http://<服务器IP>:8842 注册,第一个账号就是管理员。设置 EASYSUB_DB=sqlite 后首次启动会自动建库,跳过安装向导。一定要保留 easysub_data 数据卷,数据库、自动生成的密钥、图标和备份都在里面。
services:
app:
image: suyijun8182/easysub:latest
container_name: easysub
restart: unless-stopped
environment:
EASYSUB_DB: sqlite
TZ: Asia/Shanghai
# BACKUP_PASSWORD: at-least-12-characters # enables daily encrypted backups
volumes:
- easysub_data:/app/data
ports:
- "8842:8000"
volumes:
easysub_data:
Leave out EASYSUB_DB. On first visit the setup wizard opens: choose MySQL, enter the connection details, test, then save. Inside a container, use the MySQL host's real IP or service name, not localhost.
不设置 EASYSUB_DB,首次访问会进入安装向导:选择 MySQL,填写连接信息,测试后保存。容器里不能填 localhost,要填实际 IP 或服务名。
All optional. 全部可选。
| Var | Description / 说明 |
|---|---|
EASYSUB_DB | sqlite = create a SQLite database on first start and skip the wizard. Ignored once a database is configured. 首次启动自动初始化 SQLite。 |
JWT_SECRET | Strong custom key. If empty, a persistent key is generated in /app/data/jwt_secret. 留空时自动生成并保存在数据卷。 |
ADMIN_USERNAME / ADMIN_PASSWORD / ADMIN_EMAIL | Pre-created admin. Without ADMIN_PASSWORD, the first registered account becomes admin. 不设密码时,第一个注册的账号是管理员。 |
BACKUP_PASSWORD | 12+ characters; enables daily encrypted backups (SQLite also keeps 7 database snapshots). 每日自动加密备份的密码。 |
TZ | Time zone, e.g. Asia/Shanghai. 时区。 |
REMINDER_SCAN_TIME | Daily reminder time, default 09:00. 每日提醒时间。 |
REQUIRE_ADMIN_APPROVAL | Require admin approval for sign-ups, default false. 注册是否需要审核。 |
OUTBOUND_PRIVATE_ALLOWLIST | LAN targets notifications may reach, e.g. nas.lan:5000,192.168.1.10:7890. 允许访问的内网地址。 |
TELEGRAM_BOT_TOKEN | Optional; can also be set in the web UI. 可在网页中设置。 |
EXCHANGE_API_BASE / EXCHANGE_API_URL | Exchange-rate source (defaults provided). 汇率数据源。 |
/app/data — SQLite database, DB connection config, JWT key, uploaded icons and backups. Persist this.
SQLite 数据库、连接配置、JWT 密钥、图标和备份都在这里,必须持久化。Upgrading only swaps the image; new columns are migrated automatically on start. 升级只更换镜像,新增字段在启动时自动迁移,数据不会丢失。
# compose
docker compose pull && docker compose up -d
# docker run: pull, then recreate with the same volume and environment
docker pull suyijun8182/easysub:latest
docker rm -f easysub && docker run -d --name easysub ... suyijun8182/easysub:latest
NAS GUI: re-pull the latest tag and recreate the container, keeping the /app/data mapping and environment unchanged.
NAS 图形界面:重新拉取 latest,再重建容器,/app/data 映射和环境变量保持不变。
Back up first / 升级前先备份: Settings → Data backup → export JSON (admins: full-site backup). 在“设置 → 数据备份”导出 JSON,管理员可导出整站备份。
Export a full-site backup from the old instance, start a new SQLite instance on a new volume, register the admin, import the backup in Settings → Data backup, check the data, then switch over. Copy data/icons separately if you uploaded custom icons.
在旧实例导出整站备份 → 用新的数据卷启动 SQLite 实例并注册管理员 → 在“设置 → 数据备份”导入 → 核对数据后切换入口。上传过的自定义图标需要单独复制 data/icons。
Multi-user with open sign-up · recurring & one-time subscriptions with bulk actions and drag reordering · carrier keep-alive mode · 14 notification channels with quiet hours & weekly digest · trial / cancel-by / card-expiry reminders · monthly budget · built-in library of hundreds of services (icons ship with the image) · dashboard, reports & CSV export · calendar + .ics feed · multi-currency with live FX · personal & full-site backup/restore + daily encrypted auto-backup · 2FA · API tokens · encrypted secrets · auto DB reconnect & auto-migration · PWA · Android app with two-way sync (alpha) · Home Assistant endpoint · 中文 / English / Русский · 6 themes.
Synology / QNAP / fnOS / Unraid / TrueNAS — see 各厂家NAS安装教程.md.
MIT · Author TG @Aiden_SU · [email protected]
docker pull suyijun8182/easysub:latest