噔噔推送的服务端,支持私有化部署。
4.3K
噔噔推送服务是一个专为 HarmonyOS Next 设计的安全、隐私友好的推送服务解决方案。本项目完全开源,致力于为开发者提供一个可信赖、易部署的推送服务基础设施。
🎯 v1.0 正式发布:生产就绪,支持完整的推送功能和自动化部署
这是最简单快速的部署方式:
# 生成 32 字节随机密钥(Base64 编码)
openssl rand -base64 32
# docker-compose.yml
services:
push-server:
image: ricwang/dengdeng-server:latest
container_name: push-server
environment:
- GIN_MODE=release
- SERVER_NAME=${SERVER_NAME}
- PUSH_TOKEN_ENCRYPTION_KEY=${PUSH_TOKEN_ENCRYPTION_KEY}
ports:
- "8080:8080"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres && wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1"]
interval: 30s
timeout: 10s
start_period: 40s
retries: 3
volumes:
postgres_data:
# 检查健康状态
curl http://localhost:8080/health
# 查看日志
docker logs -f push-server
Content type
Image
Digest
sha256:a39e27752…
Size
132.1 MB
Last updated
about 1 month ago
docker pull ricwang/dengdeng-server