I’ve created an image for my springboot app and added the following service to the docker-compose.yml file which I’ve included in my project:
temporal-client:
container_name: our-client
image: springio/gs-spring-boot-docker
ports:
- 8091:8091
When I run the file (docker-compose up), the temporal container always dies, and my app cannot make the connection to the server. When I remove my service above from the docker-compose.yml file, temporal runs.
Additionally, here is some code from my application where I build a temporal service:
WorkflowServiceStubsOptions options =
WorkflowServiceStubsOptions.newBuilder()
.setTarget("temporal:7233")
.build();
service = WorkflowServiceStubs.newInstance(options);
Not sure if that’ll help, but I’m putting in just in case.
How can I fix this? Any help is greatly appreciated. Thanks