✨ Feat: [部署]:新增es
This commit is contained in:
parent
0de0a4f974
commit
115c982d4d
@ -27,6 +27,17 @@ services:
|
|||||||
# redis未设置密码,如端口暴露可能会被攻击
|
# redis未设置密码,如端口暴露可能会被攻击
|
||||||
ports:
|
ports:
|
||||||
- 6380:6379
|
- 6380:6379
|
||||||
|
bookmark-es:
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
|
||||||
|
container_name: bookmark-es
|
||||||
|
volumes:
|
||||||
|
- ./es/data:/usr/share/elasticsearch/data
|
||||||
|
- ./es/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||||||
|
ports:
|
||||||
|
- 9200:9200
|
||||||
|
- 9300:9300
|
||||||
|
networks:
|
||||||
|
- bookmark
|
||||||
bookmark-front:
|
bookmark-front:
|
||||||
image: nginx
|
image: nginx
|
||||||
container_name: bookmark-front
|
container_name: bookmark-front
|
||||||
@ -48,6 +59,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- bookmark-mysql
|
- bookmark-mysql
|
||||||
- bookmark-redis
|
- bookmark-redis
|
||||||
|
- bookmark-es
|
||||||
networks:
|
networks:
|
||||||
- bookmark
|
- bookmark
|
||||||
volumes:
|
volumes:
|
||||||
|
0
bookMarkDocker/es/elasticsearch.yml
Normal file
0
bookMarkDocker/es/elasticsearch.yml
Normal file
Loading…
x
Reference in New Issue
Block a user