docker: remove service discovery labels

docker: remove service discovery labels

This pattern has proven to be problematic at CDCK.

Add these labels at run time if you want them. Baking these labels into the image removes flexibility that we sometimes want later. There is no way to remove a label with the Docker Engine API at run time. (Closest approximation is to override the label key with an empty label value.)

diff --git a/Dockerfile b/Dockerfile
index af6b2b0..b848c07 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -44,7 +44,6 @@ COPY bin/* /usr/local/bin/
 COPY lib/ /usr/local/lib/site_ruby/2.7.0/
 
 EXPOSE 9218
-LABEL org.discourse.service._prom-exp.port=9218 org.discourse.service._prom-exp.instance=ddns-sd
 
 USER ddnssd
 WORKDIR /home/ddnssd

GitHub sha: 679e8d102c9a616af768f9b3e4388d053cac51f1

This commit appears in #21 which was merged by saj.