mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +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
|
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连接配置
|
# 修改 conf/app.yml ElasticSearch连接配置
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ services:
|
|||||||
- ${PWD}/mgodb:/data/db
|
- ${PWD}/mgodb:/data/db
|
||||||
restart: always
|
restart: always
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: deepzz0/elasticsearch:2.4.3
|
image: deepzz0/elasticsearch:2.4.1
|
||||||
|
volumes:
|
||||||
|
- ${PWD}/esdata:/usr/share/elasticsearch/data
|
||||||
restart: always
|
restart: always
|
||||||
eiblog:
|
eiblog:
|
||||||
iamge: deepzz0/eiblog:latest
|
iamge: deepzz0/eiblog:latest
|
||||||
@@ -14,11 +16,15 @@ services:
|
|||||||
- ${PWD}/conf:/app/conf
|
- ${PWD}/conf:/app/conf
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "disqus.com:151.101.192.134"
|
- "disqus.com:151.101.192.134"
|
||||||
|
- "deepzz.disqus.com:151.101.192.134"
|
||||||
links:
|
links:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
- mongodb
|
- mongodb
|
||||||
|
environment:
|
||||||
|
- GODEBUG=netdns=cgo
|
||||||
|
- RUN_MODE=prod
|
||||||
ports:
|
ports:
|
||||||
- 9000:9000
|
- 127.0.0.1:9000:9000
|
||||||
restart: always
|
restart: always
|
||||||
backup:
|
backup:
|
||||||
image: deepzz0/backup:latest
|
image: deepzz0/backup:latest
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ database:
|
|||||||
# 运行
|
# 运行
|
||||||
$ docker run --name es \
|
$ docker run --name es \
|
||||||
-p 9200:9200 \
|
-p 9200:9200 \
|
||||||
deepzz0/elasticsearch:2.4.3
|
deepzz0/elasticsearch:2.4.1
|
||||||
```
|
```
|
||||||
|
|
||||||
修改 `conf/app.yml` 下的 `eshost` 配置:
|
修改 `conf/app.yml` 下的 `eshost` 配置:
|
||||||
@@ -114,7 +114,9 @@ services:
|
|||||||
- ${PWD}/mgodb:/data/db
|
- ${PWD}/mgodb:/data/db
|
||||||
restart: always
|
restart: always
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: deepzz0/elasticsearch:2.4.3
|
image: deepzz0/elasticsearch:2.4.1
|
||||||
|
volumes:
|
||||||
|
- ${PWD}/esdata:/usr/share/elasticsearch/data
|
||||||
restart: always
|
restart: always
|
||||||
eiblog:
|
eiblog:
|
||||||
iamge: deepzz0/eiblog:latest
|
iamge: deepzz0/eiblog:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user