I found it annoying to always search for the IP to use in tabix for the started clickhouse container via docker-compose (which produces random IP's here)
Thus i implemented the feature to resolve a hostname from the tabix docker container to always have the right clickhouse ip as default host in the configuration.
I've integrated it the following in the docker/start.sh script
if CH_HOST is not set, then
-> if CH_RESOLVE_HOST is defined
-> CH_RESOLVE_HOST is resolved via DNS
-> connection string is build with
-> CH_RESOLVE_PROTO + $(dig +short CH_RESOLVE_HOST) + CH_RESOLVE_PORT
I found it annoying to always search for the IP to use in tabix for the started clickhouse container via docker-compose (which produces random IP's here)
Thus i implemented the feature to resolve a hostname from the
tabix
docker container to always have the right clickhouse ip as default host in the configuration.I've integrated it the following in the
docker/start.sh
scriptExample docker-compose:
ps.: this branch is based on my PR https://github.com/tabixio/tabix/pull/232