mirror of
https://github.com/halo-dev/plugin-starter.git
synced 2026-01-21 03:01:15 +08:00
docs: update docs for docker-compose setup
Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
下载前端依赖:
|
||||
|
||||
```bash
|
||||
cd ./plugin-template
|
||||
cd ./plugin-starter
|
||||
|
||||
./gradlew.bat pnpmInstall
|
||||
|
||||
@@ -36,17 +36,17 @@ cd ./plugin-template
|
||||
./gradlew build
|
||||
```
|
||||
|
||||
### 启动 Halo
|
||||
### 启动 Halo
|
||||
|
||||
```bash
|
||||
cd plugin-template/compose
|
||||
cd plugin-starter/compose
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
```
|
||||
|
||||
### 访问后台
|
||||
|
||||
在浏览器中访问 https://localhost/admin 即可,登录用户名和密码为当前目录中 `application-dev.yaml` 配置中的 `super-admin-username`
|
||||
在浏览器中访问 <https://localhost:8090/console> 即可,登录用户名和密码为当前目录中 `application-dev.yaml` 配置中的 `super-admin-username`
|
||||
和 `super-admin-password`。
|
||||
|
||||
然后在左侧菜单中选择 `插件`,即可查看所有插件的状态。
|
||||
@@ -54,4 +54,4 @@ docker-compose ps
|
||||
### 开发
|
||||
|
||||
修改前端代码或者后端代码,然后运行 `./gradlew.bat build` 或者 `./gradlew build`(macOS/Linux)即可构建插件,无需重启
|
||||
Halo。但修改配置文件后需要 build 插件以及重启 Halo。
|
||||
Halo。但修改配置文件后需要 build 插件以及重启 Halo。
|
||||
|
||||
@@ -4,7 +4,7 @@ spring:
|
||||
profiles:
|
||||
active: dev
|
||||
halo:
|
||||
# external-url: https://next.ryanc.cc/
|
||||
external-url: http://localhost:8090/
|
||||
security:
|
||||
initializer:
|
||||
super-admin-username: admin
|
||||
@@ -21,8 +21,8 @@ halo:
|
||||
- "build/resources"
|
||||
lib-directories:
|
||||
- "libs"
|
||||
fixedPluginPath:
|
||||
- "/plugin"
|
||||
fixedPluginPath:
|
||||
- "/plugin"
|
||||
springdoc:
|
||||
api-docs:
|
||||
enabled: true
|
||||
@@ -37,4 +37,4 @@ management:
|
||||
exposure:
|
||||
include: health,info,metrics,startup,shutdown
|
||||
server:
|
||||
port: 8090
|
||||
port: 8090
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
halo:
|
||||
image: halohub/halo-dev:next
|
||||
halo-next:
|
||||
image: halohub/halo-dev:main
|
||||
ports:
|
||||
- 8090:8090
|
||||
environment:
|
||||
@@ -10,13 +10,5 @@ services:
|
||||
- ../:/plugin
|
||||
networks:
|
||||
- halo
|
||||
halo-admin:
|
||||
image: halohub/admin-dev:next
|
||||
ports:
|
||||
- 80:80
|
||||
volumes:
|
||||
- ./halo.conf:/etc/nginx/conf.d/default.conf
|
||||
networks:
|
||||
- halo
|
||||
networks:
|
||||
halo: {}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
location / {
|
||||
proxy_pass http://halo:8090;
|
||||
}
|
||||
|
||||
location /admin {
|
||||
alias /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user