Fix docker compose file, replaced deprecated 'links' with 'depends_on'

This commit is contained in:
allegroai 2019-10-22 18:43:27 +03:00
parent e171a8b523
commit 1b1cdb34ad
2 changed files with 8 additions and 8 deletions

View File

@ -19,9 +19,9 @@ services:
- type: bind
source: /opt/trains/data/fileserver
target: /mnt/fileserver
links:
- mongo:mongo
- elasticsearch:elasticsearch
depends_on:
- mongo
- elasticsearch
environment:
ELASTIC_SERVICE_SERVICE_HOST: elasticsearch
MONGODB_SERVICE_SERVICE_HOST: mongo

View File

@ -13,10 +13,10 @@ services:
- type: bind
source: /opt/trains/config
target: /opt/trains/config
links:
- mongo:mongo
- elasticsearch:elasticsearch
- fileserver:fileserver
depends_on:
- mongo
- elasticsearch
- fileserver
environment:
ELASTIC_SERVICE_SERVICE_HOST: elasticsearch
MONGODB_SERVICE_SERVICE_HOST: mongo
@ -102,7 +102,7 @@ services:
- type: bind
source: /opt/trains/logs
target: /var/log/trains
links:
depends_on:
- apiserver
ports:
- "8080:80"