
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Self-hosted app install attribution platform. Track installs from landing pages to mobile apps using device fingerprinting — no invite codes needed.
Create a docker-compose.yml:
yamlservices: app: image: cattyinstall/app:latest restart: unless-stopped ports: - "80:80" environment: DATABASE_URL: "postgres://cattyinstall:yourpassword@postgres:5432/cattyinstall?sslmode=disable" REDIS_URL: "redis://redis:6379" JWT_SECRET: "change-this-to-a-random-string" # openssl rand -hex 32 depends_on: postgres: condition: service_healthy redis: condition: service_healthy postgres: image: postgres:15-alpine restart: unless-stopped environment: POSTGRES_USER: "cattyinstall" POSTGRES_PASSWORD: "yourpassword" # Must match DATABASE_URL POSTGRES_DB: "cattyinstall" volumes: - postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U cattyinstall"] interval: 10s timeout: 5s retries: 5 redis: image: redis:7-alpine restart: unless-stopped command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru volumes: - redis-data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 volumes: postgres-data: redis-data:
Then run:
bashdocker compose up -d
Open http://your-server-ip in your browser.
If you already have PostgreSQL and Redis:
bashdocker run -d \ -p 80:80 \ -e DATABASE_URL="postgres://user:pass@your-pg:5432/cattyinstall?sslmode=disable" \ -e REDIS_URL="redis://your-redis:6379" \ -e JWT_SECRET="$(openssl rand -hex 32)" \ cattyinstall/app:latest
| Variable | Description |
|---|---|
DATABASE_URL | PostgreSQL connection string. Example: postgres://user:pass@host:5432/cattyinstall?sslmode=disable |
REDIS_URL | Redis connection string. Example: redis://host:6379 |
JWT_SECRET | Random secret for signing tokens. Generate with openssl rand -hex 32 |
| Variable | Default | Description |
|---|---|---|
COOKIE_SECURE | true | Set to false if not using HTTPS |
SDK_RATE_LIMIT_RPS | 30 | Max requests per second per IP for SDK endpoints |
SDK_RATE_LIMIT_BURST | 60 | Max burst size for SDK rate limiting |
All-in-one image containing:
Database migrations run automatically on every startup. No manual steps needed when updating.
┌──────────────────────────────────┐ │ cattyinstall/app:latest │ :80 │ │ ───────────────►│ Nginx ──► React Dashboard │ │ │ │ │ └──► Go API Server (:3000) │ │ │ │ │ └──────────────┼─────────┼───────────┘ │ │ PostgreSQL Redis
bashdocker compose pull docker compose up -d
Data is persisted in PostgreSQL volumes. New migrations run automatically on startup.
Add a reverse proxy in front of the container:
nginxserver { listen 443 ssl; server_name attribution.example.com; ssl_certificate /etc/ssl/certs/your-cert.pem; ssl_certificate_key /etc/ssl/private/your-key.pem; location / { proxy_pass http://localhost:80; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } }
COOKIE_SECURE defaults to true, which is correct for HTTPS. Set it to false only for HTTP-only deployments.
| Component | Minimum | Recommended |
|---|---|---|
| Docker | 20.10+ | Latest with Compose V2 |
| PostgreSQL | 14+ | 15-alpine |
| Redis | 6+ | 7-alpine |
| RAM | 1 GB | 2 GB+ |
| CPU | 1 core | 2 cores+ |
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务