diff --git a/e2e-commons/docker-compose.yml b/e2e-commons/docker-compose.yml index c955f032..c9509463 100644 --- a/e2e-commons/docker-compose.yml +++ b/e2e-commons/docker-compose.yml @@ -97,8 +97,7 @@ services: build: context: .. dockerfile: monitor/Dockerfile - args: - DOT_ENV_PATH: e2e-commons/components-envs/monitor.env + env_file: ../e2e-commons/components-envs/monitor.env entrypoint: yarn check-and-start ports: - "3010:3010" @@ -108,8 +107,7 @@ services: build: context: .. dockerfile: monitor/Dockerfile - args: - DOT_ENV_PATH: e2e-commons/components-envs/monitor-erc20.env + env_file: ../e2e-commons/components-envs/monitor-erc20.env entrypoint: yarn check-and-start ports: - "3011:3011" @@ -119,8 +117,7 @@ services: build: context: .. dockerfile: monitor/Dockerfile - args: - DOT_ENV_PATH: e2e-commons/components-envs/monitor-erc20-native.env + env_file: ../e2e-commons/components-envs/monitor-erc20-native.env entrypoint: yarn check-and-start ports: - "3012:3012" @@ -130,8 +127,7 @@ services: build: context: .. dockerfile: monitor/Dockerfile - args: - DOT_ENV_PATH: e2e-commons/components-envs/monitor-amb.env + env_file: ../e2e-commons/components-envs/monitor-amb.env entrypoint: yarn check-and-start ports: - "3013:3013" diff --git a/monitor/Dockerfile b/monitor/Dockerfile index d3adc004..6d4f1a75 100644 --- a/monitor/Dockerfile +++ b/monitor/Dockerfile @@ -15,9 +15,9 @@ RUN mv ./contracts/build ./ && rm -rf ./contracts/* ./contracts/.[!.]* && mv ./b COPY ./commons ./commons COPY ./monitor ./monitor -ARG DOT_ENV_PATH=./monitor/.env -COPY ${DOT_ENV_PATH} ./monitor/.env WORKDIR /mono/monitor -CMD echo "To start the monitor run:" \ - "yarn check-and-start" +CMD echo "To start the monitor web service run:" \ + "yarn start" \ + "To run monitor scripts run:" \ + "yarn check-all"