We are trying to use docker for our node pond apps.
We have currently 2 containers. One which is running the actyx/actyx image and one running our app image.
We followed App-to-Node communication errors | Actyx Developer
But when doing it exactly like this the app node says that the url is invalid.
So i searched and found a thread with a similar problem and found out that i had to add the ws:// prefix.
Now I get an error that says: Cxn error: connect ECONNREFUSED 192.168.48.3:4243
Where the ip address is the actyx container ip.
My docker-compose.yml looks like this:
version: "3.9" services: actyx: privileged: true image: actyx/actyx ports: - "4001:4001" - "4243:4243" - "4454:4454" - "4457:4457" - "4458:4458" volumes: - actyx-data:/data networks: - localnet machineconnector: image: machineconnector volumes: - machineconnector:/machineconnector depends_on: - actyx networks: - localnet environment: AX_STORE_URI: ws://actyx:4243/store_api privileged: true volumes: actyx-data: machineconnector: networks: localnet:
I also tried to change the URI to “ws://actyx:4454/api/v2” which had the same result.
I can however run the apps on my local machine using the actyx docker container.
Is there something that I forgot to expose?