From e58f51703c576f55542f534d845e64087a5e29e7 Mon Sep 17 00:00:00 2001 From: Kishan Takoordyal Date: Fri, 12 Feb 2021 10:39:34 +0400 Subject: [PATCH] add ssl + mount ports.conf volume --- bin/app/Dockerfile | 2 +- config/ports.conf | 11 +++++++++++ docker-compose.yml | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 config/ports.conf diff --git a/bin/app/Dockerfile b/bin/app/Dockerfile index 957f026..d8ba7fb 100644 --- a/bin/app/Dockerfile +++ b/bin/app/Dockerfile @@ -52,7 +52,7 @@ RUN apt update && \ service apache2 start # Enable Apache modules and restart apache -RUN a2enmod rewrite deflate proxy proxy_ajp proxy_http proxy_wstunnel && \ +RUN a2enmod rewrite deflate headers proxy proxy_ajp proxy_http proxy_wstunnel ssl && \ service apache2 restart EXPOSE 80/tcp diff --git a/config/ports.conf b/config/ports.conf new file mode 100644 index 0000000..4f9ba02 --- /dev/null +++ b/config/ports.conf @@ -0,0 +1,11 @@ +Listen 80 + + + Listen 443 + + + + Listen 443 + + +Listen 8080 diff --git a/docker-compose.yml b/docker-compose.yml index 0768b0e..7a5f89f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,6 +18,7 @@ services: - db volumes: - ${CODE_SERVER_CONFIG-./config/code-server.yml}:/root/.config/code-server/config.yaml + - ${APACHE_PORTS-./config/ports.conf}:/etc/apache2/ports.conf - ${VHOST_DIR-./config/vhosts}:/etc/apache2/sites-enabled tty: true db: