Troubleshooting Tips: Docker Configuration

Docker run with environment variables is not able to replace UI properties

When I use docker run with environment variables as shown below, the Elasticsearch values in uiconfiguration.properties are not replaced. Hence the analytics is broken.

docker run -d --name gateway_externales --hostname gateway_externales -p 7072:9072 -p 3555:5555 -e apigw_elasticsearch_hosts=elastic:9200

However, the values in WmAPIGateway/config/resources/elasticsearch/config.properties are correctly replaced.

Resolution:

Set the kibana autostart to false and try.