-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): 添加compose文件,优化makefile
- Loading branch information
Showing
6 changed files
with
150 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3.9' | ||
services: | ||
hipush: | ||
container_name: hipush | ||
platform: linux/amd64 | ||
image: hub.hitosea.com/cossim/hipush | ||
volumes: | ||
- ./config.yaml:/config/config.yaml | ||
# 如果启用了ios推送,需要将推送证书挂载到容器中 | ||
#- /Users/macos-15/Desktop/key/AuthKey_UU2D9Z4ANF.p8:/config/key/AuthKey_UU2D9Z4ANF.p8 | ||
command: | ||
- "-config" | ||
- "/config/config.yaml" | ||
ports: | ||
- "7070:7070" | ||
- "7071:7071" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
http: | ||
enabled: true | ||
address: "0.0.0.0" | ||
port: 7070 | ||
|
||
grpc: | ||
enabled: true | ||
address: "0.0.0.0" | ||
port: 7071 | ||
|
||
storage: | ||
enabled: true | ||
# 存储类型 memory redis | ||
type: "memory" | ||
# 本地持久化路径 | ||
path: "" | ||
ios: | ||
- enabled: true | ||
|
||
# 应用程序的 Bundle ID | ||
# ios capacitor.config文件中的appId 例如com.hitosea.apptest | ||
appid: "" | ||
|
||
# APNs 密钥文件路径 | ||
key_path: "" | ||
|
||
# 密钥类型(例如:pem) | ||
key_type: pem | ||
|
||
# 密钥文件的密码(如果有) | ||
password: "" | ||
|
||
# 是否为生产环境 | ||
production: false | ||
|
||
# 最大并发推送数 | ||
max_concurrent_pushes: 100 | ||
# 最大重试次数 | ||
|
||
max_retry: 5 | ||
|
||
# 密钥 ID | ||
key_id: "" | ||
|
||
# 开发团队 ID | ||
team_id: "" | ||
|
||
- enabled: true | ||
app_id: "" | ||
key_path: "" | ||
key_type: pem | ||
password: "" | ||
production: false | ||
max_concurrent_pushes: 100 | ||
max_retry: 0 | ||
key_id: "" | ||
team_id: "" | ||
|
||
android: | ||
- enabled: true | ||
|
||
appid: "" | ||
|
||
# Firebase Admin SDK AccountKey.json | ||
key_path: "" | ||
|
||
max_retry: 0 | ||
|
||
huawei: | ||
- enabled: true | ||
app_id: "huawei-appid-1" | ||
app_secret: "huawei-app-secret-1" | ||
|
||
# 华为认证URL | ||
auth_url: https://oauth-login.cloud.huawei.com/oauth2/v3/token | ||
|
||
# 华为推送URL | ||
push_url: https://push-api.cloud.huawei.com | ||
max_retry: 5 | ||
|
||
vivo: | ||
- enabled: true | ||
app_id: "" | ||
app_key: "" | ||
app_secret: "" | ||
max_retry: 5 | ||
|
||
oppo: | ||
- enabled: true | ||
app_id: "" | ||
app_key: "" | ||
# 这里的secret是oppo的masterSecret, | ||
app_secret: "" | ||
max_retry: 5 | ||
|
||
xiaomi: | ||
- enabled: true | ||
app_id: "" | ||
package: | ||
- xxx.xx.xx | ||
app_secret: "" | ||
max_retry: 5 | ||
|
||
meizu: | ||
- enabled: true | ||
app_id: "" | ||
package: "" | ||
app_key: "" | ||
max_retry: 5 | ||
|
||
honor: | ||
- enabled: true | ||
app_id: "" | ||
client_id: "" | ||
client_secret: "" | ||
max_retry: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters