add ssl + mount ports.conf volume

This commit is contained in:
Kishan Takoordyal 2021-02-12 10:39:34 +04:00
parent 85bb24033c
commit e58f51703c
No known key found for this signature in database
GPG Key ID: 304DF64F0804D6A1
3 changed files with 13 additions and 1 deletions

View File

@ -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

11
config/ports.conf Normal file
View File

@ -0,0 +1,11 @@
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Listen 8080

View File

@ -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: