From 95126eaff7064fba2297588ad9d8b75c7112abb2 Mon Sep 17 00:00:00 2001 From: Jeremy Barlow Date: Tue, 17 Apr 2018 14:34:10 -0700 Subject: [PATCH] Expose available ports in Dockerfile This commit includes an expose command in the Dockerfile for various ports that the application uses - web server (80 and 443), mysql (3306), and MISP ZeroMQ (50000). --- container/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/container/Dockerfile b/container/Dockerfile index 391090f..dfd90b1 100644 --- a/container/Dockerfile +++ b/container/Dockerfile @@ -16,6 +16,9 @@ VOLUME /var/lib/mysql # Need: "misp.key" and "misp.crt" #VOLUME /etc/ssl/private +# 80/443 - MISP web server, 3306 - mysql, 6379 - redis, 50000 - MISP ZeroMQ +EXPOSE 80 443 3306 6379 50000 + ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && apt-get install -y supervisor cron logrotate syslog-ng-core postfix curl gcc git gnupg-agent make python openssl redis-server sudo vim zip wget mariadb-client mariadb-server apache2 apache2-doc apache2-utils libapache2-mod-php php php-cli php-crypt-gpg php-dev php-json php-mysql php-opcache php-readline php-redis python-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev python-setuptools rng-tools python3 python3-dev python3-pip libpq5 libjpeg-dev