add ssl + mount ports.conf volume
This commit is contained in:
parent
85bb24033c
commit
e58f51703c
@ -52,7 +52,7 @@ RUN apt update && \
|
|||||||
service apache2 start
|
service apache2 start
|
||||||
|
|
||||||
# Enable Apache modules and restart apache
|
# 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
|
service apache2 restart
|
||||||
|
|
||||||
EXPOSE 80/tcp
|
EXPOSE 80/tcp
|
||||||
|
11
config/ports.conf
Normal file
11
config/ports.conf
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
Listen 80
|
||||||
|
|
||||||
|
<IfModule ssl_module>
|
||||||
|
Listen 443
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mod_gnutls.c>
|
||||||
|
Listen 443
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
Listen 8080
|
@ -18,6 +18,7 @@ services:
|
|||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
- ${CODE_SERVER_CONFIG-./config/code-server.yml}:/root/.config/code-server/config.yaml
|
- ${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
|
- ${VHOST_DIR-./config/vhosts}:/etc/apache2/sites-enabled
|
||||||
tty: true
|
tty: true
|
||||||
db:
|
db:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user