mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-04 13:52:26 +08:00
chore: adjust config
This commit is contained in:
@@ -21,7 +21,7 @@ database:
|
||||
source: host=localhost port=5432 user=postgres dbname=eiblog sslmode=disable password=MTI3LjAuMC4x
|
||||
```
|
||||
|
||||
3、启动 ES 搜索服务:博客使用 ElasticSearch 2.4.3 做为搜索引擎。
|
||||
3、启动 ES 搜索服务:博客使用 ElasticSearch 2.4.1 做为搜索引擎。
|
||||
|
||||
```
|
||||
# 修改 conf/app.yml ElasticSearch连接配置
|
||||
|
||||
@@ -6,7 +6,9 @@ services:
|
||||
- ${PWD}/mgodb:/data/db
|
||||
restart: always
|
||||
elasticsearch:
|
||||
image: deepzz0/elasticsearch:2.4.3
|
||||
image: deepzz0/elasticsearch:2.4.1
|
||||
volumes:
|
||||
- ${PWD}/esdata:/usr/share/elasticsearch/data
|
||||
restart: always
|
||||
eiblog:
|
||||
iamge: deepzz0/eiblog:latest
|
||||
@@ -14,11 +16,15 @@ services:
|
||||
- ${PWD}/conf:/app/conf
|
||||
extra_hosts:
|
||||
- "disqus.com:151.101.192.134"
|
||||
- "deepzz.disqus.com:151.101.192.134"
|
||||
links:
|
||||
- elasticsearch
|
||||
- mongodb
|
||||
environment:
|
||||
- GODEBUG=netdns=cgo
|
||||
- RUN_MODE=prod
|
||||
ports:
|
||||
- 9000:9000
|
||||
- 127.0.0.1:9000:9000
|
||||
restart: always
|
||||
backup:
|
||||
image: deepzz0/backup:latest
|
||||
|
||||
@@ -37,7 +37,7 @@ database:
|
||||
# 运行
|
||||
$ docker run --name es \
|
||||
-p 9200:9200 \
|
||||
deepzz0/elasticsearch:2.4.3
|
||||
deepzz0/elasticsearch:2.4.1
|
||||
```
|
||||
|
||||
修改 `conf/app.yml` 下的 `eshost` 配置:
|
||||
@@ -114,7 +114,9 @@ services:
|
||||
- ${PWD}/mgodb:/data/db
|
||||
restart: always
|
||||
elasticsearch:
|
||||
image: deepzz0/elasticsearch:2.4.3
|
||||
image: deepzz0/elasticsearch:2.4.1
|
||||
volumes:
|
||||
- ${PWD}/esdata:/usr/share/elasticsearch/data
|
||||
restart: always
|
||||
eiblog:
|
||||
iamge: deepzz0/eiblog:latest
|
||||
|
||||
Reference in New Issue
Block a user