I deployed typesense with the image typesense/typesense:0.24.0, and another Golang app. But I can’t get my golang app to talk to my typesense deployment via the DNS http://mad.private-typesense-name.internal:8108, it says connection refused, and other times it would say no such host. Both apps are deployed in Madrid
this is what the typesense Dockerfile looks like:
ADD file ... in /
RUN /bin/sh -c apt-get -y
RUN /bin/sh -c mkdir -p
COPY typesense-server /opt # buildkit
RUN /bin/sh -c chmod +x
Before deploying I removed the service_http section from the typesense fly.toml file so that It can only be reached privately.
Ok, I figured it out - fly’s private networking feature relies on programs listening on IPv6. But typesense only supports IPv4. So instead, we can make use of flycast which will route connections through our proxy that can handle IPv4.