Add aliases
This commit is contained in:
parent
14a3ec94fb
commit
ee00a3a463
@ -32,6 +32,10 @@ services:
|
|||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- database_data:/var/lib/postgresql/data/
|
- database_data:/var/lib/postgresql/data/
|
||||||
|
networks:
|
||||||
|
database:
|
||||||
|
aliases:
|
||||||
|
- database
|
||||||
es01:
|
es01:
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
|
||||||
container_name: es01
|
container_name: es01
|
||||||
@ -51,7 +55,9 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "9200:9200"
|
- "9200:9200"
|
||||||
networks:
|
networks:
|
||||||
- elastic
|
elastic:
|
||||||
|
aliases:
|
||||||
|
- searchengine
|
||||||
es02:
|
es02:
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
|
||||||
container_name: es02
|
container_name: es02
|
||||||
|
Loading…
Reference in New Issue
Block a user