chore: adjust config

This commit is contained in:
deepzz0
2021-05-07 14:58:07 +08:00
parent 2b226977ab
commit 6cde9323b1
3 changed files with 13 additions and 5 deletions

View File

@@ -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连接配置

View File

@@ -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

View File

@@ -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