Hello! I have come to ask for your help as I have some doubts about the transition to production (or to an environment) of cadence.
For testing concepts we used the docker-compose method and everything worked fine. Now what we need is to be able to upload cadence-web, cadence-server.
In the case of the server we simply create this Dockerfile:
FROM ubercadence/server:0.13.0
ENTRYPOINT [ "/entrypoint.sh" ]
Entrypoint.sh
SCHEMA_DIR=$CADENCE_HOME/schema/cassandra/cadence/versioned
cadence-cassandra-tool --ep $CASSANDRA_SEEDS create -k $KEYSPACE --rf 1
cadence-cassandra-tool --ep $CASSANDRA_SEEDS -k $KEYSPACE setup-schema -v 0.0
cadence-cassandra-tool --ep $CASSANDRA_SEEDS -k $KEYSPACE update-schema -d $SCHEMA_DIR -v 0.27
VISIBILITY_SCHEMA_DIR=$CADENCE_HOME/schema/cassandra/visibility/versioned
cadence-cassandra-tool --ep $CASSANDRA_SEEDS create -k $VISIBILITY_KEYSPACE --rf 1
cadence-cassandra-tool --ep $CASSANDRA_SEEDS -k $VISIBILITY_KEYSPACE setup-schema -v 0.0
cadence-cassandra-tool --ep $CASSANDRA_SEEDS -k $VISIBILITY_KEYSPACE update-schema -d $VISIBILITY_SCHEMA_DIR -v 0.5
/start-cadence.sh
This when getting up in our cluster, generates a service called workflow_server exposed in the default ports that cadence brings.
In the case of the web, we clone the official repository and modify:
server.js
app.init({useWebpack: true}).listen(port)
And we configure the environment variables like this:
CADENCE_TCHANNEL_PEERS=workflow_server:7939
CADENCE_TCHANNEL_SERVICE=workflow_server
When creating a domain on my server, everything works fine, it is created and registered in our database. (we use cassandra) but when I go to the web and try to find the domain I get the error
connect ECONNREFUSED ip.my.service:7939
I do not understand the truth if I am passing a value wrong or if my configuration is horribly wrong but I cannot connect the web with the server. In the server configuration files I see the ip 127.0.0.1 many times and I do not know by which / which values ββto replace them and in the documentation it does not appear much more regarding this configuration. If someone could help me understand the settings and know if it is possible to do what I am trying, I would appreciate it!