Apps communicating with Actyx on Docker
By default, the SDK tries 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 manually specify the host and the port to let the 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: