It works, although requires additional changes:
command: -Dkalix.proxy.http-port=9001 -Dconfig.resource=dev-mode.conf -Dlogback.configurationFile=logback-dev-mode.xml
ports:
- "9001:9001"
...
USER_FUNCTION_PORT: ${USER_FUNCTION_PORT:-8081}
and you need to run user function with:
"-Dkalix.user-function-port=8081",
As mentioned before, we are working to simplify this setup.
Everything is ready to go in *-eventsourced-customer-registry-subscriber
samples. I would encourage to start with them. You can run them without the publishing side *-eventsourced-customer-registry
just ignore warnings about:
[info] 11:11:35.911 WARN kalix.javasdk.impl.DiscoveryImpl - Warning reported from Kalix system: KLX-00426 Direct eventing in service [host.docker.internal:9000] is failing, will be retried
[info] Could not connect to [host.docker.internal:9000]