From 753f88f3057d444f59fb0bca1053c80fa5f11b2d Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 24 Nov 2021 12:03:38 +0100 Subject: [PATCH] Expose port 5665 That way, the port is automatically mapped when using the publish all option and is automatically exposed when port mapping in the SDK is used. This is also useful in terms of documentation. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index a149ae0..657c11b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -77,5 +77,6 @@ COPY icinga2-bin/ / RUN ["install", "-o", "icinga", "-g", "icinga", "-d", "/data"] RUN ["bash", "-exo", "pipefail", "-c", "for d in /etc/icinga2 /var/*/icinga2; do mkdir -p $(dirname /data-init$d); mv $d /data-init$d; ln -vs /data$d $d; done"] +EXPOSE 5665 USER icinga CMD ["icinga2", "daemon"]