Add alias for postgesql container

This commit is contained in:
alesapin 2020-06-22 16:29:35 +03:00
parent 8cce416921
commit afcf63ad89
2 changed files with 4 additions and 2 deletions

View File

@ -7,3 +7,7 @@ services:
POSTGRES_PASSWORD: mysecretpassword
ports:
- 5432:5432
networks:
default:
aliases:
- postgre-sql.local

View File

@ -668,8 +668,6 @@ services:
- {env_file}
security_opt:
- label:disable
links:
- postgres1:postgre-sql.local
{networks}
{app_net}
{ipv4_address}