Improve docker-compose formatting
This commit is contained in:
parent
4706ec3203
commit
5dd4c433e4
@ -7,10 +7,9 @@ services:
|
|||||||
container_name: service-chats
|
container_name: service-chats
|
||||||
env_file: chats.env
|
env_file: chats.env
|
||||||
ports:
|
ports:
|
||||||
- 8282:8282
|
- "8282:8282"
|
||||||
links:
|
|
||||||
- database
|
|
||||||
networks:
|
networks:
|
||||||
|
- database
|
||||||
- elastic
|
- elastic
|
||||||
td:
|
td:
|
||||||
build:
|
build:
|
||||||
@ -19,14 +18,13 @@ services:
|
|||||||
container_name: service-td
|
container_name: service-td
|
||||||
env_file: td.env
|
env_file: td.env
|
||||||
ports:
|
ports:
|
||||||
- 8283:8283
|
- "8283:8283"
|
||||||
links: []
|
|
||||||
database:
|
database:
|
||||||
image: postgres
|
image: postgres
|
||||||
container_name: postgres01
|
container_name: postgres01
|
||||||
env_file: database.env
|
env_file: database.env
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- database_data:/var/lib/postgresql/data/
|
- database_data:/var/lib/postgresql/data/
|
||||||
es01:
|
es01:
|
||||||
@ -46,7 +44,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- data01:/usr/share/elasticsearch/data
|
- data01:/usr/share/elasticsearch/data
|
||||||
ports:
|
ports:
|
||||||
- 9200:9200
|
- "9200:9200"
|
||||||
networks:
|
networks:
|
||||||
- elastic
|
- elastic
|
||||||
es02:
|
es02:
|
||||||
@ -97,3 +95,5 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
elastic:
|
elastic:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
database:
|
||||||
|
driver: bridge
|
||||||
|
Loading…
Reference in New Issue
Block a user