Docker can't connect to store

Hi,
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?

Hi @SebastianS,

no, you did not forget to expose something (in fact, you do not need to expose port 4243 and and 4457 anymore).

The error message could indicate that you are using a version of the Pond that is not compatible with Actyx v2. The Pond is compatible from version 3 onwards (you can find guides here in the migrating your apps section). Could that be the problem?

With a compatible version of the Actyx Pond, your app container should be able to connect to Actyx with the following env var in your docker-compose file:

    environment:
      AX_STORE_URI: actyx:4454/api/v2

Hi Max,
Thank a lot I did update to pond v3.0.2 but did not change the package-prod.json for the Docker image :sweat_smile: