chore: update

This commit is contained in:
deepzz0
2021-05-06 15:29:22 +08:00
parent 182eaff085
commit 569a1fe2a1
2 changed files with 6 additions and 8 deletions

View File

@@ -6,16 +6,14 @@ services:
- ${PWD}/mgodb:/data/db
restart: always
elasticsearch:
image: deepzz0/es:2.4.1
environment:
- ES_JAVA_OPTS="-Xms512m -Xmx512m"
image: deepzz0/elasticsearch:2.4.3
restart: always
eiblog:
iamge: deepzz0/eiblog:latest
volumes:
- ${PWD}/conf:/app/conf
extra_hosts:
- "disqus.com:23.235.33.134"
- "disqus.com:151.101.192.134"
links:
- elasticsearch
- mongodb

View File

@@ -31,13 +31,13 @@ database:
### 搜索引擎
博客强依赖 ElasticSearch 搜索引擎,如果仅调试可以跳过不部署。但对外提供服务强烈建议部署上 ES这样可以提高体验感。博主提供了一个已经配置好的 docker 镜像:`deepzz0/es`
博客强依赖 ElasticSearch 搜索引擎,如果仅调试可以跳过不部署。但对外提供服务强烈建议部署上 ES这样可以提高体验感。博主提供了一个已经配置好的 docker 镜像:`deepzz0/elasticsearch`
```
# 运行
$ docker run --name es \
-p 9200:9200 \
deepzz0/es:latest
deepzz0/elasticsearch:2.4.3
```
修改 `conf/app.yml` 下的 `eshost` 配置:
@@ -123,7 +123,7 @@ services:
volumes:
- ${PWD}/conf:/app/conf
extra_hosts:
- "disqus.com:23.235.33.134"
- "disqus.com:151.101.192.134"
links:
- elasticsearch
- mongodb
@@ -139,4 +139,4 @@ services:
restart: always
```
当启动成功之后,后续的代理配置请参考 `eiblog/eiblog.conf`
当启动成功之后,后续的代理配置请参考 `eiblog/eiblog.conf`