linux下部署完善

This commit is contained in:
macro
2019-11-21 11:31:09 +08:00
parent b5a9ce44d7
commit 3d1e30015c
12 changed files with 35 additions and 1 deletions

View File

@@ -108,4 +108,28 @@ spring:
password: 123456 password: 123456
clone-on-start: true clone-on-start: true
search-paths: '{application}' search-paths: '{application}'
```
## 可视化管理工具
### 下载
- 地址https://github.com/portainer/portainer
### 安装
- 拉取镜像文件:
```bash
docker pull portainer/portainer
```
- 使用docker容器运行运行portainer
```bash
docker run -p 9000:9000 -p 8000:8000 --name portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /mydata/portainer/data:/data \
-d portainer/portainer
``` ```

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -7,6 +7,9 @@ spring:
elasticsearch: elasticsearch:
cluster-nodes: 127.0.0.1:9300 cluster-nodes: 127.0.0.1:9300
cluster-name: elasticsearch cluster-name: elasticsearch
elasticsearch:
rest:
uris: http://localhost:9200
logging: logging:
level: level:
root: info #日志配置DEBUG,INFO,WARN,ERROR root: info #日志配置DEBUG,INFO,WARN,ERROR

View File

@@ -7,5 +7,12 @@ spring:
elasticsearch: elasticsearch:
cluster-nodes: es:9300 cluster-nodes: es:9300
cluster-name: elasticsearch cluster-name: elasticsearch
elasticsearch:
rest:
uris: http://es:9200
logging: logging:
path: /var/logs #配置日志生成路径 path: /var/logs #配置日志生成路径
management:
health:
elasticsearch:
response-timeout: 1000ms #加大健康检查超时时间