From 22b9858f620295681c2666bdc602ecee2cc64b09 Mon Sep 17 00:00:00 2001 From: akaryaginUSETECH <74534681+akaryaginUSETECH@users.noreply.github.com> Date: Sun, 14 Mar 2021 20:05:58 +0000 Subject: [PATCH] updating docker-compose --- --- a/docker-compose-tests.yml +++ b/docker-compose-tests.yml @@ -21,6 +21,8 @@ build: context: ./ dockerfile: Dockerfile-tests + volumes: + - ./tests/src/config_docker.ts:/nft_parachain/tests/src/config.ts networks: - node_test_network depends_on: --- a/tests/src/config.ts +++ b/tests/src/config.ts @@ -6,7 +6,7 @@ import process from 'process'; const config = { - substrateUrl: process.env.substrateUrl || 'ws://172.17.0.1:9944' + substrateUrl: process.env.substrateUrl || 'ws://127.0.0.1:9944' } export default config; \ No newline at end of file --- /dev/null +++ b/tests/src/config_docker.ts @@ -0,0 +1,12 @@ +// +// This file is subject to the terms and conditions defined in +// file 'LICENSE', which is part of this source code package. +// + +import process from 'process'; + +const config = { + substrateUrl: process.env.substrateUrl || 'ws://172.17.0.1:9944' +} + +export default config; \ No newline at end of file -- gitstuff