Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simen Vevik
ntnu-beta-web
Commits
f265f017
Commit
f265f017
authored
Jan 07, 2020
by
Simen Vevik
Browse files
Open port 80 on client so it can redirect http to https
parent
86bf05b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/Dockerfile
View file @
f265f017
...
...
@@ -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 port
s
EXPOSE
443
80
# Start apache webserver
CMD
["apachectl", "-D", "FOREGROUND"]
\ No newline at end of file
docker-compose.yml
View file @
f265f017
...
...
@@ -41,6 +41,7 @@ services:
restart
:
always
ports
:
-
"
443:443"
-
"
80:80"
volumes
:
-
./client:/client
-
/client/node_modules
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment