-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error because not valid HostIP #19
Comments
@primeapple |
Well, |
@primeapple |
I have the exact same error as @primeapple:
In my version: '3'
services:
safely_nats:
container_name: safely_nats
image: nats:2.1.2
restart: always
networks:
- microservices
safely_test:
container_name: safely_test
image: safely/test
restart: always
environment:
WAIT_HOSTS: safely_nats:4222
networks:
- microservices
depends_on:
- safely_nats
networks:
microservices: The FROM node:12
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.1/wait /wait
RUN chmod +x /wait
WORKDIR /usr/src/app
COPY ./package.json ./
RUN npm install --production --progress=false
COPY ./dist/main.js ./
CMD /wait && echo "Starting service" && node ./main.js Both services are connected through the Docker network, this setup should work just fine. Full error output during
Using the exact same setup and config as above but reverting docker-compose-wait version from 2.7.1 to 2.6.0 solves the problem, thus proving that the network setup does indeed work and that something inside docker-compose-wait might be broken...
Sidenote: docker-compose-wait 2.7.0 also has this problem, only 2.6.1 and older seem to work. |
@primeapple @samcoenen |
@ufoscout 2.7.2 has fixed the issue for me. Cheers! |
@samcoenen , thanks a lot for your contribution! @ufoscout fixed the problem! Thank you, your project is awesome! |
Hello again,
I experienced another issue. As I described in #18 , I used a wrong version which caused sleep interval to not work correctly. After upgrading to the most current version 2.7.1, I now get the exception:
This seems to be weird, considering, it worked before in version 2.2.1. Did you change the api since then? This config gets printed:
I hope you can help me. The error is probably on my side...
The text was updated successfully, but these errors were encountered: