Commit f265f017 authored by Simen Vevik's avatar Simen Vevik
Browse files

Open port 80 on client so it can redirect http to https

parent 86bf05b4
......@@ -48,7 +48,7 @@ RUN echo "LoadModule rewrite_module modules/mod_rewrite.so" >> /usr/local/apache
RUN echo "ServerName beta-katalog.it.ntnu.no" >> /usr/local/apache2/conf/httpd.conf
### 2.5 Open ports and start apache
# Open the container port to listen to 443
EXPOSE 443
# Open the container ports
EXPOSE 443 80
# Start apache webserver
CMD ["apachectl", "-D", "FOREGROUND"]
\ No newline at end of file
......@@ -41,6 +41,7 @@ services:
restart: always
ports:
- "443:443"
- "80:80"
volumes:
- ./client:/client
- /client/node_modules
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment