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