Add aliases

This commit is contained in:
Andrea Cavalli 2021-12-01 19:42:38 +01:00
parent 14a3ec94fb
commit ee00a3a463

View File

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