Skip to content

Let's use AI to Earn!

feat(docker): add comprehensive Docker deployment guide (#201)

Sakura1d6dea4e532f
diff --git a/DOCKER_DEPLOYMENT_CN.md b/DOCKER_DEPLOYMENT_CN.md
new file mode 100644
index 00000000..ef3ffa94
--- /dev/null
+++ b/DOCKER_DEPLOYMENT_CN.md
@@ -0,0 +1,93 @@
+# AiToEarn Docker 部署指南
+
+本指南将帮助您使用 Docker Compose 快速部署完整的 AiToEarn 应用栈。
+
+## 📋 前置要求
+
+在开始之前,请确保您的系统已安装:
+
+- **Docker**: 版本 20.10 或更高
+- **Docker Compose**: 版本 2.0 或更高
+
+验证安装:
+```bash
+docker --version
+docker compose version
+```
+
+## 🚀 快速启动
+
+### 1. 克隆仓库
+
+```bash
+git clone https://github.com/yikart/AiToEarn.git
+cd AiToEarn
+```
+
+### 2. 配置环境变量
+
+复制环境变量模板文件并根据您的需求修改:
+
+```bash
+cp env.example .env
+```
+
+编辑 `.env` 文件,至少需要修改以下关键配置:
+
+```bash
+# 必须修改的安全配置
+MONGODB_PASSWORD=your-secure-mongodb-password
+REDIS_PASSWORD=your-secure-redis-password
+JWT_SECRET=your-jwt-secret-key
+INTERNAL_TOKEN=your-internal-token
+
+# 如果需要外部访问,修改 API 地址
+NEXT_PUBLIC_API_URL=http://your-domain.com:3002/api
+APP_DOMAIN=your-domain.com
+```
+
+> ⚠️ **安全提示**: 请务必修改默认密码和密钥,不要在生产环境使用默认值!
+
+### 3. 启动服务
+
+使用 Docker Compose 启动所有服务:
+
+```bash
+docker compose up -d
+```
+
+首次启动会拉取镜像,可能需要几分钟时间。
+
+### 4. 查看服务状态
+
+```bash
+docker compose ps
+```
+
+所有服务的状态应该显示为 `healthy` 或 `running`。
+
+### 5. 查看日志
+
+查看所有服务日志:
+```bash
+docker compose logs -f
+```
+
+查看特定服务的日志:
+```bash
+docker compose logs -f aitoearn-web
+docker compose logs -f aitoearn-server
+docker compose logs -f aitoearn-channel
+```
+
+## 🌐 访问应用
+
+启动成功后,您可以通过以下地址访问各个服务:
+
+| 服务 | 地址 | 说明 |
+|------|------|------|
+| **前端应用** | http://localhost:3000 | Web 用户界面 |
+| **主后端 API** | http://localhost:3002 | AiToEarn Server API |
+| **频道服务 API** | http://localhost:7001 | AiToEarn Channel API |
+| **MongoDB** | localhost:27017 | 数据库(需要认证) |
+| **Redis** | localhost:6379 | 缓存服务(需要密码) |
diff --git a/DOCKER_DEPLOYMENT_EN.md b/DOCKER_DEPLOYMENT_EN.md
new file mode 100644
index 00000000..d6d6eaf4
--- /dev/null
+++ b/DOCKER_DEPLOYMENT_EN.md
@@ -0,0 +1,93 @@
+# AiToEarn Docker Deployment Guide
+
+This guide will help you quickly deploy the complete AiToEarn application stack using Docker Compose.
+
+## 📋 Prerequisites
+
+Before you begin, ensure your system has:
+
+- **Docker**: Version 20.10 or higher
+- **Docker Compose**: Version 2.0 or higher
+
+Verify installation:
+```bash
+docker --version
+docker compose version
+```
+
+## 🚀 Quick Start
+
+### 1. Clone the Repository
+
+```bash
+git clone https://github.com/yikart/AiToEarn.git
+cd AiToEarn
+```
+
+### 2. Configure Environment Variables
+
+Copy the environment variable template file and modify it according to your needs:
+
+```bash
+cp env.example .env
+```
+
+Edit the `.env` file. At minimum, modify these critical configurations:
+
+```bash
+# Required security configurations
+MONGODB_PASSWORD=your-secure-mongodb-password
+REDIS_PASSWORD=your-secure-redis-password
+JWT_SECRET=your-jwt-secret-key
+INTERNAL_TOKEN=your-internal-token
+
+# If external access is needed, modify API address
+NEXT_PUBLIC_API_URL=http://your-domain.com:3002/api
+APP_DOMAIN=your-domain.com
+```
+
+> ⚠️ **Security Warning**: Always change default passwords and secrets. Never use default values in production!
+
+### 3. Start Services
+
+Launch all services using Docker Compose:
+
+```bash
+docker compose up -d
+```
+
+The first startup will pull images, which may take a few minutes.
+
+### 4. Check Service Status
+
+```bash
+docker compose ps
+```
+
+All services should show status as `healthy` or `running`.
+
+### 5. View Logs
+
+View all service logs:
+```bash
+docker compose logs -f
+```
+
+View specific service logs:
+```bash
+docker compose logs -f aitoearn-web
+docker compose logs -f aitoearn-server
+docker compose logs -f aitoearn-channel
+```
+
+## 🌐 Access Applications
+
+After successful startup, you can access services at the following addresses:
+
+| Service | URL | Description |
+|---------|-----|-------------|
+| **Web Frontend** | http://localhost:3000 | Web User Interface |
+| **Main Backend API** | http://localhost:3002 | AiToEarn Server API |
+| **Channel Service API** | http://localhost:7001 | AiToEarn Channel API |
+| **MongoDB** | localhost:27017 | Database (authentication required) |
+| **Redis** | localhost:6379 | Cache Service (password required) |
diff --git a/README.md b/README.md
index bd0d1a8c..464bca58 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,11 @@
-
# [Aitoearn: The Best Open-Source AI Agent for Content Marketing](https://aitoearn.ai)
-
![GitHub stars](https://img.shields.io/github/stars/yikart/AttAiToEarn?color=fa6470)
![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)
-[![Required Node.JS 20.18.x](https://img.shields.io/static/v1?label=node\&message=20.18.x%20\&logo=node.js\&color=3f893e)](https://nodejs.org/about/releases)
+[![Required Node.JS 20.18.x](https://img.shields.io/static/v1?label=node&message=20.18.x%20&logo=node.js&color=3f893e)](https://nodejs.org/about/releases)
[简体中文](README_CN.md) | English
-
-
**Create · Publish · Engage · Monetize — all in one platform.**
AiToEarn helps creators, brands, and businesses build, distribute, and monetize content with **AI-powered automation** across the world’s most popular platforms.
@@ -23,36 +19,33 @@ TikTok, YouTube, Facebook, Instagram, Threads, Twitter (X), Pinterest
<br/>
- 1. [Quick Start](#quick-start)
- 2. [Start Web Project](#start-web-project)
- 3. [Start Electron Project](#start-electron-project)
- 4. [Key Features](#key-features)
- 5. [MCP Service](#mcp-service)
- 6. [Advanced Setup](#advanced-setup)
- 7. [Contribution Guide](#contribution-guide)
- 8. [Contact](#contact)
- 9. [Milestones](#milestones)
- 10. [FAQ](#faq)
- 11. [Recommended](#recommended)
+1. [Quick Start](#quick-start)
+2. [Start Web Project](#start-web-project)
+3. [Start Electron Project](#start-electron-project)
+4. [Key Features](#key-features)
+5. [MCP Service](#mcp-service)
+6. [Advanced Setup](#advanced-setup)
+7. [Contribution Guide](#contribution-guide)
+8. [Contact](#contact)
+9. [Milestones](#milestones)
+10. [FAQ](#faq)
+11. [Recommended](#recommended)
</details>
-
## Quick Start
-OS | Download
--- | --
-Android | [![Download Android](https://img.shields.io/badge/APK-Android1.2.2-green?logo=android&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.2.2/Aitoearn-1.2.2.apk)
-Windows | [![Download Windows](https://img.shields.io/badge/Setup-Windows1.2.2-blue?logo=windows&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.2.2/AiToEarnSetup-1.2.2.exe)
-macOS | [![Download macOS](https://img.shields.io/badge/DMG-macOS1.2.2-black?logo=apple&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.2.2/AiToEarn+1.2.2.dmg)
-iOS | **Coming soon!**
-Web | [Use on Web](https://aitoearn.ai/en/accounts)
+| OS | Download |
+| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| Android | [![Download Android](https://img.shields.io/badge/APK-Android1.2.2-green?logo=android&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.2.2/Aitoearn-1.2.2.apk) |
+| Windows | [![Download Windows](https://img.shields.io/badge/Setup-Windows1.2.2-blue?logo=windows&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.2.2/AiToEarnSetup-1.2.2.exe) |
+| macOS | [![Download macOS](https://img.shields.io/badge/DMG-macOS1.2.2-black?logo=apple&logoColor=white)](https://aitoearn-download.s3.ap-southeast-1.amazonaws.com/aitoearn-download/1.2.2/AiToEarn+1.2.2.dmg) |
+| iOS | **Coming soon!** |
+| Web | [Use on Web](https://aitoearn.ai/en/accounts) |
[Google Play Download](https://play.google.com/store/apps/details?id=com.yika.aitoearn.aitoearn_app)
-
-
-
## Start Web Project
+
### 1. Start the backend service
For local setup:
@@ -70,7 +63,6 @@ pnpm install
pnpm run dev
```
-
## Start Electron Project
```sh
@@ -90,20 +82,19 @@ npm run rebuild
npm run dev
```
-
## Key Features
🚀 **AiToEarn is a full-stack AI-powered content growth & monetization platform.**
From creative ideas, to multi-channel publishing, to analytics & monetization — AiToEarn helps you truly **Create · Publish · Engage · Monetize.**
-
### 1. Content Publishing — One-Click Multi-Platform
-* **Distribute Everywhere**: Publish to the widest range of global platforms (Douyin, Kwai, WeChat Channels, WeChat Offical Account, Bilibili, Rednote, Facebook, Instagram, TikTok, LinkedIn, Threads, YouTube, Pinterest, x(Twitter)).
-* **(Coming soon) Smart Import**: Import historical content for fast re-editing & redistribution.
+- **Distribute Everywhere**: Publish to the widest range of global platforms (Douyin, Kwai, WeChat Channels, WeChat Offical Account, Bilibili, Rednote, Facebook, Instagram, TikTok, LinkedIn, Threads, YouTube, Pinterest, x(Twitter)).
+- **(Coming soon) Smart Import**: Import historical content for fast re-editing & redistribution.
+
+ - Example: Sync your Xiaohongshu posts to YouTube in one click.
- * Example: Sync your Xiaohongshu posts to YouTube in one click.
-* **Calendar Scheduler**: Plan & coordinate content like a calendar across all platforms.
+- **Calendar Scheduler**: Plan & coordinate content like a calendar across all platforms.
<div style="display: flex; justify-content: space-around;">
<img src="presentation/app-screenshot/1. content publish/calendar.jpeg" width="30%">
<img src="presentation/app-screenshot/1. content publish/support_channels.jpeg" width="30%">
@@ -111,8 +102,8 @@ From creative ideas, to multi-channel publishing, to analytics & monetization
### 2. Content Hotspot — Viral Inspiration Engine
-* **Case Library**: Explore how others create posts with 10,000+ likes.
-* **Trend Radar**: Discover the latest viral trends instantly, reduce creator anxiety.
+- **Case Library**: Explore how others create posts with 10,000+ likes.
+- **Trend Radar**: Discover the latest viral trends instantly, reduce creator anxiety.
<div style="display: flex; justify-content: space-around;">
<img src="presentation/app-screenshot/2. content hotspot/hotspot.jpg" width="22%">
<img src="presentation/app-screenshot/2. content hotspot/hotspot2.jpeg" width="22%">
@@ -122,8 +113,8 @@ From creative ideas, to multi-channel publishing, to analytics & monetization
### 3. Content Search — Brand & Market Insights
-* **Brand Monitoring**: Track conversations about your brand in real-time.
-* **Content Discovery**: Search for posts, topics, and communities for targeted engagement.
+- **Brand Monitoring**: Track conversations about your brand in real-time.
+- **Content Discovery**: Search for posts, topics, and communities for targeted engagement.
<div style="display:flex; justify-content:space-between; align-items:center;">
<img src="presentation/app-screenshot/3.%20content%20search/contentsearch.gif" width="22%">
@@ -132,11 +123,10 @@ From creative ideas, to multi-channel publishing, to analytics & monetization
<img src="presentation/app-screenshot/3.%20content%20search/contentsearch4.jpeg" width="22%">
</div>
-
### 4. Comments Search — Precision User Mining
-* **Smart Comment Search**: Detect high-conversion signals like “link please” or “how to buy.”
-* **Conversion Booster**: Reply instantly, drive higher engagement & sales.
+- **Smart Comment Search**: Detect high-conversion signals like “link please” or “how to buy.”
+- **Conversion Booster**: Reply instantly, drive higher engagement & sales.
<div style="display:flex; justify-content:space-between; align-items:center;">
<img src="presentation/app-screenshot/4. comments search/commentsearch.gif" width="30%">
<img src="presentation/app-screenshot/4. comments search/commentfilter.jpeg" width="30%">
@@ -144,9 +134,9 @@ From creative ideas, to multi-channel publishing, to analytics & monetization
### 5. Content Engagement — Growth Engine
-* **Unified Dashboard**: Manage all interactions in one place.
-* **Proactive Engagement**: Join trending conversations, connect with potential customers.
-* Turn **passive operations** into **active traffic growth.**
+- **Unified Dashboard**: Manage all interactions in one place.
+- **Proactive Engagement**: Join trending conversations, connect with potential customers.
+- Turn **passive operations** into **active traffic growth.**
<div style="display:flex; justify-content:space-between; align-items:center;">
<img src="presentation/app-screenshot/5. content engagement/commentfilter2.jpeg" width="30%">
@@ -154,79 +144,71 @@ From creative ideas, to multi-channel publishing, to analytics & monetization
### 6. (Coming Soon) Content Analytics — Full-Funnel Data
-* **Cross-Platform Comparison**: One platform may block traffic, but others won’t.
-* **End-to-End Monitoring**: Track performance and build your path to 1M+ followers.
+- **Cross-Platform Comparison**: One platform may block traffic, but others won’t.
+- **End-to-End Monitoring**: Track performance and build your path to 1M+ followers.
<img src="./presentation/data_center.png" alt="post" width="500"/>
### 7. (Coming Soon) AI Content Creation — End-to-End Assistant
-* **AI Copywriting**: Auto-generate titles, captions & descriptions.
-* **AI Commenting**: Engage proactively, attract traffic.
-* **Image & Card Generator**: Speed up content workflows.
-* **Supported AI Video Models**: Seedance, Kling, Hailuo, Veo, Medjourney, Sora, Pika, Runway.
-* **Supported AI Image Models**: GPT, Flux.
-* **Next**: Tag generator, smart DMs, video editing, AI avatars, translation for global distribution.
-
+- **AI Copywriting**: Auto-generate titles, captions & descriptions.
+- **AI Commenting**: Engage proactively, attract traffic.
+- **Image & Card Generator**: Speed up content workflows.
+- **Supported AI Video Models**: Seedance, Kling, Hailuo, Veo, Medjourney, Sora, Pika, Runway.
+- **Supported AI Image Models**: GPT, Flux.
+- **Next**: Tag generator, smart DMs, video editing, AI avatars, translation for global distribution.
### 8. (Coming Soon) Content Marketplace — Trade & Monetize
-* **Creators**: Sell your content directly, find buyers fast.
-* **Brands**: Purchase ready-made, high-quality content.
-* **AI-Powered Growth**:
+- **Creators**: Sell your content directly, find buyers fast.
+- **Brands**: Purchase ready-made, high-quality content.
+- **AI-Powered Growth**:
**Let’s use AI to earn. Let’s earn money together!**
-
## MCP Service
+
https://www.modelscope.cn/mcp/servers/whh826219822/aitoearn
https://www.npmjs.com/~aitoearn?activeTab=packages
-
## Advanced Setup
AiToEarn integrates with many official APIs. Developer key setup guides:
-* [Bilibili](./aitoearn_web/CHANNEL_Md/BILIBILI.md)
-* [WeChat Official Accounts](./aitoearn_web/CHANNEL_Md/WXPLAT.md)
-
+- [Bilibili](./aitoearn_web/CHANNEL_Md/BILIBILI.md)
+- [WeChat Official Accounts](./aitoearn_web/CHANNEL_Md/WXPLAT.md)
## Contribution Guide
See [Contribution Guide](./aitoearn_web/CONTRIBUTING.md) to get started.
-
## Contact
-https://t.me/harryyyy2025
+https://t.me/harryyyy2025
## Milestones
-* 2025.02.26 — Released win-0.1.1
-* 2025.03.15 — Released win-0.2.0
-* 2025.04.18 — Released win-0.6.0
-* 2025.05.20 — Released win-0.8.0
-* 2025.08.08 — [Released win-0.8.1](https://github.com/yikart/AiToEarn/releases/tag/v0.8.1)
-* 2025.08.08 — [Released web-0.1-beta](./aitoearn_web/README.md)
-* 2025.09.16 — [Released v1.0.18](https://github.com/yikart/AiToEarn/releases/tag/v1.0.18)
-* 2025.10.01 — [Released v1.0.27](https://github.com/yikart/AiToEarn/releases/tag/v1.0.27)
+- 2025.02.26 — Released win-0.1.1
+- 2025.03.15 — Released win-0.2.0
+- 2025.04.18 — Released win-0.6.0
+- 2025.05.20 — Released win-0.8.0
+- 2025.08.08 — [Released win-0.8.1](https://github.com/yikart/AiToEarn/releases/tag/v0.8.1)
+- 2025.08.08 — [Released web-0.1-beta](./aitoearn_web/README.md)
+- 2025.09.16 — [Released v1.0.18](https://github.com/yikart/AiToEarn/releases/tag/v1.0.18)
+- 2025.10.01 — [Released v1.0.27](https://github.com/yikart/AiToEarn/releases/tag/v1.0.27)
---
## [FAQ](https://heovzp8pm4.feishu.cn/wiki/UksHwxdFai45SvkLf0ycblwRnTc?from=from_copylink)
-
## Recommended
**[AWS Activate Program](https://www.amazonaws.cn/en/campaign/ps-yunchuang/)**
**[AI Model Hub](https://api.zyai.online/)**
-* [https://github.com/TMElyralab/MuseTalk](https://github.com/TMElyralab/MuseTalk)
-* [https://github.com/5ime/video\_spider](https://github.com/5ime/video_spider)
-* [https://github.com/FunAudioLLM/CosyVoice?tab=readme-ov-file](https://github.com/FunAudioLLM/CosyVoice?tab=readme-ov-file)
-* [https://github.com/facefusion/facefusion](https://github.com/facefusion/facefusion)
-* [https://github.com/linyqh/NarratoAI](https://github.com/linyqh/NarratoAI)
-* [https://github.com/harry0703/MoneyPrinterTurbo](https://github.com/harry0703/MoneyPrinterTurbo)
-
-
-
+- [https://github.com/TMElyralab/MuseTalk](https://github.com/TMElyralab/MuseTalk)
+- [https://github.com/5ime/video_spider](https://github.com/5ime/video_spider)
+- [https://github.com/FunAudioLLM/CosyVoice?tab=readme-ov-file](https://github.com/FunAudioLLM/CosyVoice?tab=readme-ov-file)
+- [https://github.com/facefusion/facefusion](https://github.com/facefusion/facefusion)
+- [https://github.com/linyqh/NarratoAI](https://github.com/linyqh/NarratoAI)
+- [https://github.com/harry0703/MoneyPrinterTurbo](https://github.com/harry0703/MoneyPrinterTurbo)
diff --git a/README_CN.md b/README_CN.md
index cc35bd11..526d2e30 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -1,9 +1,8 @@
-
# [Aitoearn:最佳开源 AI 内容营销智能体](https://aitoearn.ai)
![GitHub stars](https://img.shields.io/github/stars/yikart/AttAiToEarn?color=fa6470)
![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)
-[![Required Node.JS 20.18.x](https://img.shields.io/static/v1?label=node\&message=20.18.x%20\&logo=node.js\&color=3f893e)](https://nodejs.org/about/releases)
+[![Required Node.JS 20.18.x](https://img.shields.io/static/v1?label=node&message=20.18.x%20&logo=node.js&color=3f893e)](https://nodejs.org/about/releases)
[简体中文](README_CN.md) | English
@@ -19,32 +18,31 @@ AiToEarn 通过**AI 自动化**,帮助创作者、品牌与企业在全球主
<br/>
- 1. [快速开始](#quick-start)
- 2. [启动 Web 项目](#start-web-project)
- 3. [启动 Electron 项目](#start-electron-project)
- 4. [核心功能](#key-features)
- 5. [MCP 服务](#mcp-service)
- 6. [高级设置](#advanced-setup)
- 7. [贡献指南](#contribution-guide)
- 8. [联系](#contact)
- 9. [里程碑](#milestones)
- 10. [常见问题](#faq)
- 11. [推荐](#recommended)
+1. [快速开始](#quick-start)
+2. [启动 Web 项目](#start-web-project)
+3. [启动 Electron 项目](#start-electron-project)
+4. [核心功能](#key-features)
+5. [MCP 服务](#mcp-service)
+6. [高级设置](#advanced-setup)
+7. [贡献指南](#contribution-guide)
+8. [联系](#contact)
+9. [里程碑](#milestones)
+10. [常见问题](#faq)
+11. [推荐](#recommended)
</details>
<h2 id="quick-start">快速开始</h2>
-操作系统 | 下载
--- | --
-Android | [![Download Android](https://img.shields.io/badge/APK-Android1.1.0-green?logo=android&logoColor=white)]((https://github.com/yikart/AiToEarn/releases/download/v1.1.0/aitoearn-1.1.0.apk))
-Windows | [![Download Windows](https://img.shields.io/badge/Setup-Windows1.1.0-blue?logo=windows&logoColor=white)](https://github.com/yikart/AiToEarn/releases/download/v1.1.0/AiToEarnSetup-1.1.0.exe)
-macOS | [![Download macOS](https://img.shields.io/badge/DMG-macOS1.1.0-black?logo=apple&logoColor=white)](https://github.com/yikart/AiToEarn/releases/download/v1.1.0/AiToEarn.1.1.0.dmg)
-iOS | **Coming soon!**
-Web | [Use on Web](https://aitoearn.ai/en/accounts)
+| 操作系统 | 下载 |
+| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| Android | [![Download Android](https://img.shields.io/badge/APK-Android1.1.0-green?logo=android&logoColor=white)](<(https://github.com/yikart/AiToEarn/releases/download/v1.1.0/aitoearn-1.1.0.apk)>) |
+| Windows | [![Download Windows](https://img.shields.io/badge/Setup-Windows1.1.0-blue?logo=windows&logoColor=white)](https://github.com/yikart/AiToEarn/releases/download/v1.1.0/AiToEarnSetup-1.1.0.exe) |
+| macOS | [![Download macOS](https://img.shields.io/badge/DMG-macOS1.1.0-black?logo=apple&logoColor=white)](https://github.com/yikart/AiToEarn/releases/download/v1.1.0/AiToEarn.1.1.0.dmg) |
+| iOS | **Coming soon!** |
+| Web | [Use on Web](https://aitoearn.ai/en/accounts) |
[Google Play 下载](https://play.google.com/store/apps/details?id=com.yika.aitoearn.aitoearn_app)
-
<h2 id="start-web-project">启动 Web 项目</h2>
### 1. 启动后端服务
@@ -55,7 +53,7 @@ Web | [Use on Web](https://aitoearn.ai/en/accounts)
```bash
pnpm install
pnpm run dev:local
-````
+```
### 2. 启动前端 `aitoearn-web`
@@ -90,11 +88,12 @@ npm run dev
### 1. 内容发布 —— 一键多平台
-* **全网分发**:覆盖最广的平台矩阵(Douyin、Kwai、WeChat Channels、WeChat Offical Accounts、 Bilibili、Rednote、Facebook、Instagram、TikTok、LinkedIn、Threads、YouTube、Pinterest、X(Twitter))。
-* **(即将推出)智能导入**:导入历史内容,快速二次编辑与再分发。
+- **全网分发**:覆盖最广的平台矩阵(Douyin、Kwai、WeChat Channels、WeChat Offical Accounts、 Bilibili、Rednote、Facebook、Instagram、TikTok、LinkedIn、Threads、YouTube、Pinterest、X(Twitter))。
+- **(即将推出)智能导入**:导入历史内容,快速二次编辑与再分发。
+
+ - 例如:一键将你的小红书内容同步到 YouTube。
- * 例如:一键将你的小红书内容同步到 YouTube。
-* **日历排期**:像排日程一样统一规划所有平台的内容。
+- **日历排期**:像排日程一样统一规划所有平台的内容。
<div style="display: flex; justify-content: space-around;">
<img src="presentation/app-screenshot/1. content publish/calendar.jpeg" width="30%">
@@ -103,8 +102,8 @@ npm run dev
### 2. 热点灵感 —— 爆款灵感引擎
-* **案例库**:浏览 1 万+点赞量级内容的创作方法。
-* **趋势雷达**:第一时间捕捉热点,缓解创作者焦虑。
+- **案例库**:浏览 1 万+点赞量级内容的创作方法。
+- **趋势雷达**:第一时间捕捉热点,缓解创作者焦虑。
<div style="display: flex; justify-content: space-around;">
<img src="presentation/app-screenshot/2. content hotspot/hotspot.jpg" width="22%">
@@ -115,8 +114,8 @@ npm run dev
### 3. 内容搜索 —— 品牌与市场洞察
-* **品牌监测**:实时追踪关于你品牌的讨论。
-* **内容发现**:按主题、话题与社区检索,以更精准地参与互动。
+- **品牌监测**:实时追踪关于你品牌的讨论。
+- **内容发现**:按主题、话题与社区检索,以更精准地参与互动。
<div style="display:flex; justify-content:space-between; align-items:center;">
<img src="presentation/app-screenshot/3.%20content%20search/contentsearch.gif" width="22%">
@@ -127,8 +126,8 @@ npm run dev
### 4. 评论搜寻 —— 精准用户挖掘
-* **智能评论检索**:识别“求链接”“怎么购买”等高转化信号。
-* **转化加速器**:快速回复,驱动更高互动与销量。
+- **智能评论检索**:识别“求链接”“怎么购买”等高转化信号。
+- **转化加速器**:快速回复,驱动更高互动与销量。
<div style="display:flex; justify-content:space-between; align-items:center;">
<img src="presentation/app-screenshot/4. comments search/commentsearch.gif" width="30%">
@@ -137,8 +136,8 @@ npm run dev
### 5. 互动运营 —— 增长引擎
-* **统一工作台**:在一个界面管理全部互动。
-* **主动参与**:跟进热点话题,连接潜在用户。
+- **统一工作台**:在一个界面管理全部互动。
+- **主动参与**:跟进热点话题,连接潜在用户。
将**被动运营**转变为**主动引流**。
<div style="display:flex; justify-content:space-between; align-items:center;">
@@ -147,25 +146,25 @@ npm run dev
### 6.(即将推出)数据分析 —— 全链路漏斗
-* **跨平台对比**:某个平台限流?其他平台一样能打。
-* **端到端监控**:追踪表现,构建通往 100 万+粉丝的路线图。
+- **跨平台对比**:某个平台限流?其他平台一样能打。
+- **端到端监控**:追踪表现,构建通往 100 万+粉丝的路线图。
<img src="./presentation/data_center.png" alt="数据中心" width="500"/>
### 7.(即将推出)AI 内容创作 —— 端到端助手
-* **AI 文案**:自动生成标题、文案与描述。
-* **AI 评论**:主动互动,吸引流量。
-* **图片与卡片生成**:加速内容工作流。
-* **支持的视频模型**:Seedance、Kling、海螺(Hailuo)、Veo、Medjourney、Sora、Pika、Runway。
-* **支持的图像模型**:GPT、Flux。
-* **下一步**:标签生成、智能私信、视频剪辑、AI 数字人、全球分发多语种翻译等。
+- **AI 文案**:自动生成标题、文案与描述。
+- **AI 评论**:主动互动,吸引流量。
+- **图片与卡片生成**:加速内容工作流。
+- **支持的视频模型**:Seedance、Kling、海螺(Hailuo)、Veo、Medjourney、Sora、Pika、Runway。
+- **支持的图像模型**:GPT、Flux。
+- **下一步**:标签生成、智能私信、视频剪辑、AI 数字人、全球分发多语种翻译等。
### 8.(即将推出)内容交易市场 —— 创作即变现
-* **创作者**:直接出售你的内容,高效找到买家。
-* **品牌方**:即买即用的优质内容资源。
-* **AI 驱动增长**:
+- **创作者**:直接出售你的内容,高效找到买家。
+- **品牌方**:即买即用的优质内容资源。
+- **AI 驱动增长**:
**让我们用 AI 赚钱,一起赚!**
<h2 id="mcp-service">MCP 服务</h2>
@@ -177,8 +176,8 @@ npm run dev
AiToEarn 集成了多种官方 API。以下是开发者密钥配置指南:
-* [B 站(Bilibili)](./aitoearn_web/CHANNEL_Md/BILIBILI.md)
-* [微信公众号(WeChat Official Accounts)](./aitoearn_web/CHANNEL_Md/WXPLAT.md)
+- [B 站(Bilibili)](./aitoearn_web/CHANNEL_Md/BILIBILI.md)
+- [微信公众号(WeChat Official Accounts)](./aitoearn_web/CHANNEL_Md/WXPLAT.md)
<h2 id="contribution-guide">贡献指南</h2>
@@ -190,18 +189,18 @@ AiToEarn 集成了多种官方 API。以下是开发者密钥配置指南:
<h2 id="milestones">里程碑</h2>
-* 2025.02.26 — 发布 win-0.1.1
-* 2025.03.15 — 发布 win-0.2.0
-* 2025.04.18 — 发布 win-0.6.0
-* 2025.05.20 — 发布 win-0.8.0
-* 2025.08.08 — [发布 win-0.8.1](https://github.com/yikart/AiToEarn/releases/tag/v0.8.1)
-* 2025.08.08 — [发布 web-0.1-beta](./aitoearn_web/README.md)
-* 2025.09.16 — [发布 v1.0.18](https://github.com/yikart/AiToEarn/releases/tag/v1.0.18)
-* 2025.10.01 — [发布 v1.0.27](https://github.com/yikart/AiToEarn/releases/tag/v1.0.27)
+- 2025.02.26 — 发布 win-0.1.1
+- 2025.03.15 — 发布 win-0.2.0
+- 2025.04.18 — 发布 win-0.6.0
+- 2025.05.20 — 发布 win-0.8.0
+- 2025.08.08 — [发布 win-0.8.1](https://github.com/yikart/AiToEarn/releases/tag/v0.8.1)
+- 2025.08.08 — [发布 web-0.1-beta](./aitoearn_web/README.md)
+- 2025.09.16 — [发布 v1.0.18](https://github.com/yikart/AiToEarn/releases/tag/v1.0.18)
+- 2025.10.01 — [发布 v1.0.27](https://github.com/yikart/AiToEarn/releases/tag/v1.0.27)
---
-## [常见问题](https://docs.aitoearn.ai)
+## [常见问题](https://docs.aitoearn.ai)
<h2 id="recommended">推荐</h2>
@@ -209,10 +208,9 @@ AiToEarn 集成了多种官方 API。以下是开发者密钥配置指南:
**[AI Model Hub](https://api.zyai.online/)**
-* [https://github.com/TMElyralab/MuseTalk](https://github.com/TMElyralab/MuseTalk)
-* [https://github.com/5ime/video\_spider](https://github.com/5ime/video_spider)
-* [https://github.com/FunAudioLLM/CosyVoice?tab=readme-ov-file](https://github.com/FunAudioLLM/CosyVoice?tab=readme-ov-file)
-* [https://github.com/facefusion/facefusion](https://github.com/facefusion/facefusion)
-* [https://github.com/linyqh/NarratoAI](https://github.com/linyqh/NarratoAI)
-* [https://github.com/harry0703/MoneyPrinterTurbo](https://github.com/harry0703/MoneyPrinterTurbo)
-
+- [https://github.com/TMElyralab/MuseTalk](https://github.com/TMElyralab/MuseTalk)
+- [https://github.com/5ime/video_spider](https://github.com/5ime/video_spider)
+- [https://github.com/FunAudioLLM/CosyVoice?tab=readme-ov-file](https://github.com/FunAudioLLM/CosyVoice?tab=readme-ov-file)
+- [https://github.com/facefusion/facefusion](https://github.com/facefusion/facefusion)
+- [https://github.com/linyqh/NarratoAI](https://github.com/linyqh/NarratoAI)
+- [https://github.com/harry0703/MoneyPrinterTurbo](https://github.com/harry0703/MoneyPrinterTurbo)
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 00000000..cfb88ffc
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,213 @@
+version: '3.8'
+
+services:
+ mongodb:
+ image: mongo:7.0
+ container_name: aitoearn-mongodb
+ restart: unless-stopped
+ environment:
+ MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USERNAME:-admin}
+ MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD:-password}
+ ports:
+ - "27017:27017"
+ volumes:
+ - mongodb-data:/data/db
+ - mongodb-config:/data/configdb
+ networks:
+ - aitoearn-network
+ healthcheck:
+ test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
+ interval: 10s
+ timeout: 5s
+ retries: 5
+ start_period: 40s
+
+ redis:
+ image: redis:7-alpine
+ container_name: aitoearn-redis
+ restart: unless-stopped
+ command: redis-server --requirepass ${REDIS_PASSWORD:-password}
+ ports:
+ - "6379:6379"
+ volumes:
+ - redis-data:/data
+ networks:
+ - aitoearn-network
+ healthcheck:
+ test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
+ interval: 10s
+ timeout: 3s
+ retries: 5
+ start_period: 30s
+
+ aitoearn-channel:
+ image: aitoearn/aitoearn-channel:latest
+ container_name: aitoearn-channel
+ restart: unless-stopped
+ depends_on:
+ mongodb:
+ condition: service_healthy
+ redis:
+ condition: service_healthy
+ ports:
+ - "7001:7001"
+ environment:
+ NODE_ENV: ${NODE_ENV:-production}
+ APP_ENV: ${APP_ENV:-production}
+ APP_NAME: aitoearn-channel
+ APP_DOMAIN: ${APP_DOMAIN:-localhost}
+
+ MONGODB_HOST: mongodb
+ MONGODB_PORT: 27017
+ MONGODB_USERNAME: ${MONGODB_USERNAME:-admin}
+ MONGODB_PASSWORD: ${MONGODB_PASSWORD:-password}
+
+ REDIS_HOST: redis
+ REDIS_PORT: 6379
+ REDIS_PASSWORD: ${REDIS_PASSWORD:-password}
+
+ SERVER_URL: http://aitoearn-server:3002
+
+ INTERNAL_TOKEN: ${INTERNAL_TOKEN:-change-this-secret-token}
+
+ FEISHU_WEBHOOK_URL: ${FEISHU_WEBHOOK_URL:-}
+ FEISHU_WEBHOOK_SECRET: ${FEISHU_WEBHOOK_SECRET:-}
+
+ BILIBILI_CLIENT_ID: ${BILIBILI_CLIENT_ID:-}
+ BILIBILI_CLIENT_SECRET: ${BILIBILI_CLIENT_SECRET:-}
+ GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID:-}
+ GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET:-}
+ KWAI_CLIENT_ID: ${KWAI_CLIENT_ID:-}
+ KWAI_CLIENT_SECRET: ${KWAI_CLIENT_SECRET:-}
+ PINTEREST_CLIENT_ID: ${PINTEREST_CLIENT_ID:-}
+ PINTEREST_CLIENT_SECRET: ${PINTEREST_CLIENT_SECRET:-}
+ PINTEREST_TEST_AUTHORIZATION: ${PINTEREST_TEST_AUTHORIZATION:-}
+ TIKTOK_CLIENT_ID: ${TIKTOK_CLIENT_ID:-}
+ TIKTOK_CLIENT_SECRET: ${TIKTOK_CLIENT_SECRET:-}
+ TWITTER_CLIENT_ID: ${TWITTER_CLIENT_ID:-}
+ TWITTER_CLIENT_SECRET: ${TWITTER_CLIENT_SECRET:-}
+ FACEBOOK_CLIENT_ID: ${FACEBOOK_CLIENT_ID:-}
+ FACEBOOK_CLIENT_SECRET: ${FACEBOOK_CLIENT_SECRET:-}
+ FACEBOOK_CONFIG_ID: ${FACEBOOK_CONFIG_ID:-}
+ THREADS_CLIENT_ID: ${THREADS_CLIENT_ID:-}
+ THREADS_CLIENT_SECRET: ${THREADS_CLIENT_SECRET:-}
+ INSTAGRAM_CLIENT_ID: ${INSTAGRAM_CLIENT_ID:-}
+ INSTAGRAM_CLIENT_SECRET: ${INSTAGRAM_CLIENT_SECRET:-}
+ LINKEDIN_CLIENT_ID: ${LINKEDIN_CLIENT_ID:-}
+ LINKEDIN_CLIENT_SECRET: ${LINKEDIN_CLIENT_SECRET:-}
+ YOUTUBE_CLIENT_ID: ${YOUTUBE_CLIENT_ID:-}
+ YOUTUBE_CLIENT_SECRET: ${YOUTUBE_CLIENT_SECRET:-}
+ WXPLAT_APP_ID: ${WXPLAT_APP_ID:-}
+ WXPLAT_APP_SECRET: ${WXPLAT_APP_SECRET:-}
+ WXPLAT_ENCODING_AES_KEY: ${WXPLAT_ENCODING_AES_KEY:-}
+
+ # 阿里云绿网配置
+ ALI_GREEN_ACCESS_KEY_ID: ${ALI_GREEN_ACCESS_KEY_ID:-}
+ ALI_GREEN_ACCESS_KEY_SECRET: ${ALI_GREEN_ACCESS_KEY_SECRET:-}
+ networks:
+ - aitoearn-network
+ healthcheck:
+ test: ["CMD", "node", "-e", "require('http').get('http://localhost:7001/health', (r) => { process.exit(r.statusCode === 200 ? 0 : 1) })"]
+ interval: 30s
+ timeout: 10s
+ retries: 3
+ start_period: 60s
+
+ aitoearn-server:
+ image: aitoearn/aitoearn-server:latest
+ container_name: aitoearn-server
+ restart: unless-stopped
+ depends_on:
+ mongodb:
+ condition: service_healthy
+ redis:
+ condition: service_healthy
+ aitoearn-channel:
+ condition: service_healthy
+ ports:
+ - "3002:3002"
+ environment:
+ # 应用配置
+ NODE_ENV: ${NODE_ENV:-production}
+ APP_ENV: ${APP_ENV:-production}
+ APP_NAME: aitoearn-server
+
+ MONGODB_HOST: mongodb
+ MONGODB_PORT: 27017
+ MONGODB_USERNAME: ${MONGODB_USERNAME:-admin}
+ MONGODB_PASSWORD: ${MONGODB_PASSWORD:-password}
+
+ STATISTICS_DB_HOST: mongodb
+ STATISTICS_DB_PORT: 27017
+ STATISTICS_DB_USERNAME: ${MONGODB_USERNAME:-admin}
+ STATISTICS_DB_PASSWORD: ${MONGODB_PASSWORD:-password}
+
+ # Redis 配置
+ REDIS_HOST: redis
+ REDIS_PORT: 6379
+ REDIS_PASSWORD: ${REDIS_PASSWORD:-password}
+
+ CHANNEL_URL: http://aitoearn-channel:7001
+
+ # 认证配置
+ JWT_SECRET: ${JWT_SECRET:-change-this-jwt-secret}
+ INTERNAL_TOKEN: ${INTERNAL_TOKEN:-change-this-secret-token}
+
+ MAIL_USER: ${MAIL_USER:-}
+ MAIL_PASS: ${MAIL_PASS:-}
+
+ FEISHU_WEBHOOK_URL: ${FEISHU_WEBHOOK_URL:-}
+ FEISHU_WEBHOOK_SECRET: ${FEISHU_WEBHOOK_SECRET:-}
+
+ KLING_ACCESS_KEY: ${KLING_ACCESS_KEY:-}
+ KLING_BASE_URL: ${KLING_BASE_URL:-}
+ VOLCENGINE_API_KEY: ${VOLCENGINE_API_KEY:-}
+ OPENAI_API_KEY: ${OPENAI_API_KEY:-}
+ OPENAI_BASE_URL: ${OPENAI_BASE_URL:-}
+ DASHSCOPE_API_KEY: ${DASHSCOPE_API_KEY:-}
+ DASHSCOPE_BASE_URL: ${DASHSCOPE_BASE_URL:-}
+ SORA2_API_KEY: ${SORA2_API_KEY:-}
+ SORA2_BASE_URL: ${SORA2_BASE_URL:-}
+ MD2CARD_API_KEY: ${MD2CARD_API_KEY:-}
+
+ ALI_GREEN_ACCESS_KEY_ID: ${ALI_GREEN_ACCESS_KEY_ID:-}
+ ALI_GREEN_ACCESS_KEY_SECRET: ${ALI_GREEN_ACCESS_KEY_SECRET:-}
+ networks:
+ - aitoearn-network
+ healthcheck:
+ test: ["CMD", "node", "-e", "require('http').get('http://localhost:3002/health', (r) => { process.exit(r.statusCode === 200 ? 0 : 1) })"]
+ interval: 30s
+ timeout: 10s
+ retries: 3
+ start_period: 60s
+
+ # AiToEarn Web 服务 - 前端应用
+ aitoearn-web:
+ image: aitoearn/aitoearn-web:latest
+ container_name: aitoearn-web
+ restart: unless-stopped
+ depends_on:
+ aitoearn-server:
+ condition: service_healthy
+ ports:
+ - "3000:3000"
+ environment:
+ NODE_ENV: ${NODE_ENV:-production}
+ NEXT_TELEMETRY_DISABLED: 1
+ NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:3002/api}
+ networks:
+ - aitoearn-network
+
+networks:
+ aitoearn-network:
+ driver: bridge
+ name: aitoearn-network
+
+volumes:
+ mongodb-data:
+ driver: local
+ mongodb-config:
+ driver: local
+ redis-data:
+ driver: local
+
diff --git a/env.example b/env.example
new file mode 100644
index 00000000..47d89a9b
--- /dev/null
+++ b/env.example
@@ -0,0 +1,144 @@
+# ==================================
+# AiToEarn Docker Compose 环境变量配置
+# ==================================
+# 复制此文件为 .env 并修改相应的值
+
+# ----------------------------------
+# 应用基础配置
+# ----------------------------------
+NODE_ENV=production
+APP_ENV=production
+APP_DOMAIN=localhost
+
+# ----------------------------------
+# MongoDB 数据库配置
+# ----------------------------------
+MONGODB_USERNAME=admin
+MONGODB_PASSWORD=change-this-mongodb-password
+
+# ----------------------------------
+# Redis 缓存配置
+# ----------------------------------
+REDIS_PASSWORD=change-this-redis-password
+
+# ----------------------------------
+# 认证与安全
+# ----------------------------------
+# JWT 密钥(用于生成和验证 token)
+JWT_SECRET=change-this-jwt-secret-key-to-a-random-string
+
+# 内部服务通信 token
+INTERNAL_TOKEN=change-this-internal-token-to-a-random-string
+
+# ----------------------------------
+# 前端 API 地址配置
+# ----------------------------------
+# 客户端访问的 API 地址(浏览器端访问,需要根据实际域名修改)
+NEXT_PUBLIC_API_URL=http://localhost:3002/api
+
+# ----------------------------------
+# 邮件服务配置(可选)
+# ----------------------------------
+MAIL_USER=
+MAIL_PASS=
+
+# ----------------------------------
+# 飞书 Webhook 配置(可选)
+# ----------------------------------
+FEISHU_WEBHOOK_URL=
+FEISHU_WEBHOOK_SECRET=
+
+# ----------------------------------
+# 第三方平台 OAuth 配置
+# ----------------------------------
+# Bilibili
+BILIBILI_CLIENT_ID=
+BILIBILI_CLIENT_SECRET=
+
+# Google
+GOOGLE_CLIENT_ID=
+GOOGLE_CLIENT_SECRET=
+
+# 快手 (Kwai)
+KWAI_CLIENT_ID=
+KWAI_CLIENT_SECRET=
+
+# Pinterest
+PINTEREST_CLIENT_ID=
+PINTEREST_CLIENT_SECRET=
+PINTEREST_TEST_AUTHORIZATION=
+
+# TikTok
+TIKTOK_CLIENT_ID=
+TIKTOK_CLIENT_SECRET=
+
+# Twitter
+TWITTER_CLIENT_ID=
+TWITTER_CLIENT_SECRET=
+
+# Facebook
+FACEBOOK_CLIENT_ID=
+FACEBOOK_CLIENT_SECRET=
+FACEBOOK_CONFIG_ID=
+
+# Threads
+THREADS_CLIENT_ID=
+THREADS_CLIENT_SECRET=
+
+# Instagram
+INSTAGRAM_CLIENT_ID=
+INSTAGRAM_CLIENT_SECRET=
+
+# LinkedIn
+LINKEDIN_CLIENT_ID=
+LINKEDIN_CLIENT_SECRET=
+
+# YouTube
+YOUTUBE_CLIENT_ID=
+YOUTUBE_CLIENT_SECRET=
+
+# 微信公众平台
+WXPLAT_APP_ID=
+WXPLAT_APP_SECRET=
+WXPLAT_ENCODING_AES_KEY=
+
+# ----------------------------------
+# AI 服务配置
+# ----------------------------------
+# 可灵 (Kling)
+KLING_ACCESS_KEY=
+KLING_BASE_URL=
+
+# 火山引擎 (Volcengine)
+VOLCENGINE_API_KEY=
+
+# OpenAI
+OPENAI_API_KEY=
+OPENAI_BASE_URL=
+
+# 阿里云通义千问 (DashScope)
+DASHSCOPE_API_KEY=
+DASHSCOPE_BASE_URL=
+
+# Sora2
+SORA2_API_KEY=
+SORA2_BASE_URL=
+
+# MD2Card
+MD2CARD_API_KEY=
+
+# ----------------------------------
+# 阿里云内容安全(绿网)配置
+# ----------------------------------
+ALI_GREEN_ACCESS_KEY_ID=
+ALI_GREEN_ACCESS_KEY_SECRET=
+
+# ----------------------------------
+# AWS S3 配置(如需要)
+# ----------------------------------
+# 注意:AWS 凭证通常通过 IAM role 或其他方式配置
+# 如果使用 Docker 部署,可能需要额外配置
+# AWS_ACCESS_KEY_ID=
+# AWS_SECRET_ACCESS_KEY=
+# AWS_REGION=ap-southeast-1
+