Add network names
This commit is contained in:
parent
71ec5b20ee
commit
14a3ec94fb
@ -27,7 +27,6 @@ services:
|
||||
database:
|
||||
image: postgres
|
||||
container_name: postgres01
|
||||
hostname: database
|
||||
env_file: database.env
|
||||
ports:
|
||||
- "5432:5432"
|
||||
@ -36,7 +35,6 @@ services:
|
||||
es01:
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
|
||||
container_name: es01
|
||||
hostname: searchengine
|
||||
environment:
|
||||
- node.name=es01
|
||||
- cluster.name=es-docker-cluster
|
||||
@ -102,5 +100,7 @@ volumes:
|
||||
networks:
|
||||
elastic:
|
||||
driver: bridge
|
||||
name: searchengine
|
||||
database:
|
||||
driver: bridge
|
||||
name: database
|
||||
|
Loading…
Reference in New Issue
Block a user