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 - type: bind
source: /opt/trains/data/fileserver source: /opt/trains/data/fileserver
target: /mnt/fileserver target: /mnt/fileserver
links: depends_on:
- mongo:mongo - mongo
- elasticsearch:elasticsearch - elasticsearch
environment: environment:
ELASTIC_SERVICE_SERVICE_HOST: elasticsearch ELASTIC_SERVICE_SERVICE_HOST: elasticsearch
MONGODB_SERVICE_SERVICE_HOST: mongo MONGODB_SERVICE_SERVICE_HOST: mongo

View File

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