App-to-Node communication errors
Apps communicating with Actyx on Docker
By default, the Actyx Pond and all SDKs are trying to connect to Actyx on localhost. If your Actyx and app container are not both using the host's networking directly via
--network=host (only available on Linux), you therefore need to set an environment variable to let the Pond or SDK know where to reach Actyx.
docker run command
When running your app container, you need to add the following flag:
-e AX_STORE_URI="<IP address of the Actyx container>:4454/api/v2
On macOS or windows, you can just use
host.docker.internal instead of the IP address of your Actyx container.
In a Docker Compose file
This is an exemplary docker-compose file:
Did not find what you were looking for?
If you couldn't a solution to your problem, please don't hesitate to contact us in our community forum or on our Discord server. We'll do our best to get back to you with answers as fast as possible.