deploy:去除docker部署es,暂时不需要es
This commit is contained in:
parent
c2b865e996
commit
36f168fa2d
@ -27,22 +27,22 @@ services:
|
|||||||
# redis未设置密码,如端口暴露可能会被攻击
|
# redis未设置密码,如端口暴露可能会被攻击
|
||||||
ports:
|
ports:
|
||||||
- 6380:6379
|
- 6380:6379
|
||||||
bookmark-es:
|
# bookmark-es:
|
||||||
image: elasticsearch:7.2.0
|
# image: elasticsearch:7.2.0
|
||||||
container_name: bookmark-es
|
# container_name: bookmark-es
|
||||||
volumes:
|
# volumes:
|
||||||
- /etc/localtime:/etc/localtime
|
# - /etc/localtime:/etc/localtime
|
||||||
- ./timezone:/etc/timezone
|
# - ./timezone:/etc/timezone
|
||||||
- ./es/data:/usr/share/elasticsearch/data
|
# - ./es/data:/usr/share/elasticsearch/data
|
||||||
- ./es/ik:/usr/share/elasticsearch/plugins/ik
|
# - ./es/ik:/usr/share/elasticsearch/plugins/ik
|
||||||
- ./es/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
# - ./es/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||||||
environment:
|
# environment:
|
||||||
- "ES_JAVA_OPTS=-Xms1500m -Xmx1500m"
|
# - "ES_JAVA_OPTS=-Xms1500m -Xmx1500m"
|
||||||
ports:
|
# ports:
|
||||||
- 9200:9200
|
# - 9200:9200
|
||||||
- 9300:9300
|
# - 9300:9300
|
||||||
networks:
|
# networks:
|
||||||
- bookmark
|
# - bookmark
|
||||||
bookmark-front:
|
bookmark-front:
|
||||||
image: nginx
|
image: nginx
|
||||||
container_name: bookmark-front
|
container_name: bookmark-front
|
||||||
@ -83,7 +83,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- bookmark-mysql
|
- bookmark-mysql
|
||||||
- bookmark-redis
|
- bookmark-redis
|
||||||
- bookmark-es
|
# - bookmark-es
|
||||||
networks:
|
networks:
|
||||||
- bookmark
|
- bookmark
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
base=$(cd "$(dirname "$0")";pwd)
|
base=$(cd "$(dirname "$0")";pwd)
|
||||||
|
|
||||||
# 创建es存放数据文件夹并设置读写权限
|
# 创建es存放数据文件夹并设置读写权限
|
||||||
mkdir $base/es/data>/dev/null 2>&1
|
# mkdir $base/es/data>/dev/null 2>&1
|
||||||
|
|
||||||
chmod 777 $base/es/data
|
chmod 777 $base/es/data
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user