I have primary container (circleci/node:4.8.3) that runs some daemon and runs HTTP API at port 3000. Daemon spins up another worker containers that needs to communicate with that API.
How to implement this?
My guess is that I have to create new Dockerfile for primary container based on circleci/node:4.8.3 with EXPOSE 3000 added. Then in .circleci/config.yml use
ifconfig to get IP address of primary container and provide it to worker containers?