Merge pull request #220 from alimy/pr-update-readme1

update README.md and add docker-compose.yaml to release zip file
pull/221/head
北野 - Michael Li 2 years ago committed by GitHub
commit 5139a7daa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,7 @@ CGO_ENABLED := 1
endif endif
RELEASE_ROOT = release RELEASE_ROOT = release
RELEASE_FILES = LICENSE README.md config.yaml.sample scripts docs RELEASE_FILES = LICENSE README.md config.yaml.sample docker-compose.yaml scripts docs
RELEASE_LINUX_AMD64 = $(RELEASE_ROOT)/linux-amd64/$(TARGET) RELEASE_LINUX_AMD64 = $(RELEASE_ROOT)/linux-amd64/$(TARGET)
RELEASE_DARWIN_AMD64 = $(RELEASE_ROOT)/darwin-amd64/$(TARGET) RELEASE_DARWIN_AMD64 = $(RELEASE_ROOT)/darwin-amd64/$(TARGET)
RELEASE_DARWIN_ARM64 = $(RELEASE_ROOT)/darwin-arm64/$(TARGET) RELEASE_DARWIN_ARM64 = $(RELEASE_ROOT)/darwin-arm64/$(TARGET)

@ -194,7 +194,10 @@ PaoPao主要由以下优秀的开源项目/工具构建
docker build -t your/paopao-ce:tag --build-arg EMBED_UI=no . docker build -t your/paopao-ce:tag --build-arg EMBED_UI=no .
# 运行 # 运行
docker run -d -p 8008:8008 -v ${PWD}/config.yaml.sample:/app/paopao-ce/config.yaml your/paopao-ce:tag mkdir custom && docker run -d -p 8008:8008 -v ${PWD}/custom:/app/paopao-ce/custom -v ${PWD}/config.yaml.sample:/app/paopao-ce/config.yaml your/paopao-ce:tag
# 或者直接运行构建好的docker image
mkdir custom && docker run -d -p 8008:8008 -v ${PWD}/custom:/app/paopao-ce/custom -v ${PWD}/config.yaml.sample:/app/paopao-ce/config.yaml bitbus/paopao-ce:latest
``` ```
* 前端: * 前端:
@ -227,8 +230,7 @@ docker compose up --build
# file: docker-compose.yaml # file: docker-compose.yaml
... ...
backend: backend:
build: image: bitbus/paopao-ce:latest
context: .
restart: always restart: always
depends_on: depends_on:
- db - db

@ -1,5 +1,5 @@
Features: Features:
Default: ["Sqlite3", "Zinc", "LocalOSS", "LoggerZinc", "BigCacheIndex", "Friendship", "Frontend:EmbedWeb", "Web"] Default: ["Sqlite3", "Zinc", "LocalOSS", "LoggerFile", "BigCacheIndex", "Friendship", "Frontend:EmbedWeb", "Web"]
BigCacheIndex: # 使用BigCache缓存泡泡广场消息流 BigCacheIndex: # 使用BigCache缓存泡泡广场消息流
MaxIndexPage: 1024 # 最大缓存页数必须是2^n, 代表最大同时缓存多少页数据 MaxIndexPage: 1024 # 最大缓存页数必须是2^n, 代表最大同时缓存多少页数据
HardMaxCacheSize: 256 # 最大缓存大小(MB)0表示无限制 HardMaxCacheSize: 256 # 最大缓存大小(MB)0表示无限制
@ -8,14 +8,6 @@ WebServer: # Web服务
HttpPort: 8008 HttpPort: 8008
ReadTimeout: 60 ReadTimeout: 60
WriteTimeout: 60 WriteTimeout: 60
Logger: # 日志通用配置
Level: debug # 日志级别 panic|fatal|error|warn|info|debug|trace
LoggerZinc: # 使用Zinc写日志
Host: 127.0.0.1:4080
Index: paopao-log
User: admin
Password: admin
Secure: False
JWT: # 鉴权加密 JWT: # 鉴权加密
Secret: 18a6413dc4fe394c66345ebe501b2f26 Secret: 18a6413dc4fe394c66345ebe501b2f26
Issuer: paopao-api Issuer: paopao-api

@ -81,7 +81,7 @@ Pyroscope: # Pyroscope配置
Logger: # 日志通用配置 Logger: # 日志通用配置
Level: debug # 日志级别 panic|fatal|error|warn|info|debug|trace Level: debug # 日志级别 panic|fatal|error|warn|info|debug|trace
LoggerFile: # 使用File写日志 LoggerFile: # 使用File写日志
SavePath: data/paopao-ce/logs SavePath: custom/data/paopao-ce/logs
FileName: app FileName: app
FileExt: .log FileExt: .log
LoggerZinc: # 使用Zinc写日志 LoggerZinc: # 使用Zinc写日志
@ -151,7 +151,7 @@ S3: # Amazon S3 存储配置
Bucket: paopao Bucket: paopao
Domain: Domain:
LocalOSS: # 本地文件OSS存储配置 LocalOSS: # 本地文件OSS存储配置
SavePath: data/paopao-ce/oss SavePath: custom/data/paopao-ce/oss
Secure: False Secure: False
Bucket: paopao Bucket: paopao
Domain: 127.0.0.1:8008 Domain: 127.0.0.1:8008
@ -176,7 +176,7 @@ Postgres: # PostgreSQL数据库
SSLMode: disable SSLMode: disable
TimeZone: Asia/Shanghai TimeZone: Asia/Shanghai
Sqlite3: # Sqlite3数据库 Sqlite3: # Sqlite3数据库
Path: data/sqlite3/paopao-ce.db Path: custom/data/sqlite3/paopao-ce.db
Redis: Redis:
Host: redis:6379 Host: redis:6379
Password: Password:

Loading…
Cancel
Save