Skip to content

Commit 83e95ae

Browse files
committed
省略掉一些注释(如果要自己构建应该先知道自己在做什么),加强关于jwt.secret的警告
1 parent 9724206 commit 83e95ae

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

docker-compose-nightly.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ services:
44
container_name: beidou-server
55
# nightly 为每日构建
66
image: ghcr.io/beidoums/beidou-server:nightly
7-
# 自己构建..
87
# build:
98
# context: .
109
# dockerfile: Dockerfile-server
@@ -17,7 +16,6 @@ services:
1716
- "8484:8484"
1817
# Channels.
1918
- "7575-7577:7575-7577"
20-
# 如果要挂载wz scripts 取消注释 volumes 设置
2119
# 注意 命令行参数的优先级高于 application.yml 配置文件
2220
volumes:
2321
- ./beidou-server-nightly:/opt/server
@@ -30,10 +28,12 @@ services:
3028
- --gms.service.localhost=127.0.0.1
3129
# 如果前端访问失败,可以尝试修改↓
3230
# - --app.vue=<前端url>
33-
# 生产环境请自行生成密钥,并关闭 swagger
34-
# - --jwt.secret=50da066e-6080-40f5-a173-86bd27d4f674
35-
# - --springdoc.api-docs.enabled=true
36-
# - --springdoc.swagger-ui.enabled=true
31+
# !!! 生产环境务必自行生成密钥(可以使用以下指令来生成) , 并关闭 swagger !!!
32+
# powershell: -join ((1..10) | ForEach { '{0:x2}' -f (Get-Random -Maximum 256) })
33+
# bash : openssl rand -hex 10
34+
# - --jwt.secret=<your secret key here>
35+
# - --springdoc.api-docs.enabled=false
36+
# - --springdoc.swagger-ui.enabled=false
3737
healthcheck:
3838
test: ["CMD", "sh", "-c", "netstat -tunlp | grep 0.0.0.0:8484 || exit 1"]
3939
interval: 10s
@@ -49,11 +49,9 @@ services:
4949
container_name: beidou-ui
5050
# nightly 为每日构建
5151
image: ghcr.io/beidoums/beidou-ui:nightly
52-
# 自己构建..
5352
# build:
5453
# context: .
5554
# dockerfile: Dockerfile-ui
56-
# 可以挂载出来 修改端口,添加证书
5755
# volumes:
5856
# - ./nginx-ui.conf:/etc/nginx/conf.d/default.conf
5957
ports:
@@ -68,8 +66,8 @@ services:
6866
container_name: beidou-db
6967
image: mysql:8.4.0
7068
environment:
71-
# mysql root 默认密码
72-
MYSQL_ROOT_PASSWORD: "root"
69+
# mysql root 密码
70+
MYSQL_ROOT_PASSWORD: "root"
7371
# ports:
7472
# - "3306:3306"
7573
volumes:

docker-compose-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ services:
2121
- --gms.service.wan-host=127.0.0.1
2222
- --gms.service.lan-host=127.0.0.1
2323
- --gms.service.localhost=127.0.0.1
24+
# !!! 生产环境务必自行生成密钥(可以使用以下指令来生成) , 并关闭 swagger !!!
25+
# powershell: -join ((1..10) | ForEach { '{0:x2}' -f (Get-Random -Maximum 256) })
26+
# bash : openssl rand -hex 10
27+
# - --jwt.secret=<your secret key here>
28+
# - --springdoc.api-docs.enabled=false
29+
# - --springdoc.swagger-ui.enabled=false
2430
# healthcheck:
2531
# test: ["CMD", "wget", "--spider", "http://localhost:8686/"]
2632
# interval: 10s
@@ -37,7 +43,7 @@ services:
3743
image: mysql:8.4.0
3844
environment:
3945
# mysql root 默认密码
40-
MYSQL_ROOT_PASSWORD: "root"
46+
MYSQL_ROOT_PASSWORD: "root"
4147
# ports:
4248
# - "3306:3306"
4349
volumes:

0 commit comments

Comments
 (0)