Docker's apache now listens on port 8080
This commit is contained in:
parent
25da66a3dc
commit
5600f2d86f
4
Makefile
4
Makefile
@ -9,10 +9,10 @@ rebuild:
|
|||||||
sudo docker build --no-cache -t adg-fe container
|
sudo docker build --no-cache -t adg-fe container
|
||||||
|
|
||||||
interactive:
|
interactive:
|
||||||
sudo docker run -p 80:80 -p 8000:8000 -v ${PWD}:/opt/adagios-frontend -i -t --name adg-fe adg-fe bash
|
sudo docker run -p 8080:8080 -v ${PWD}:/opt/adagios-frontend -i -t --name adg-fe adg-fe bash
|
||||||
|
|
||||||
daemon:
|
daemon:
|
||||||
sudo docker run -p 80:80 -p 8000:8000 -v ${PWD}:/opt/adagios-frontend -d -t --name adg-fe adg-fe
|
sudo docker run -p 8080:8080 -v ${PWD}:/opt/adagios-frontend -d -t --name adg-fe adg-fe
|
||||||
|
|
||||||
kill:
|
kill:
|
||||||
sudo docker kill adg-fe
|
sudo docker kill adg-fe
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:8080>
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
|
|
||||||
# Servers to proxy the connection, or;
|
# Servers to proxy the connection, or;
|
||||||
|
@ -18,10 +18,11 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|||||||
|
|
||||||
# Configure Apache2 for reverse-proxying
|
# Configure Apache2 for reverse-proxying
|
||||||
ADD 000-default.conf etc/apache2/sites-enabled/000-default.conf
|
ADD 000-default.conf etc/apache2/sites-enabled/000-default.conf
|
||||||
|
ADD ports.conf etc/apache2/ports.conf
|
||||||
RUN a2enmod proxy
|
RUN a2enmod proxy
|
||||||
RUN a2enmod proxy_http
|
RUN a2enmod proxy_http
|
||||||
|
|
||||||
# Expose appropriate ports
|
# Expose appropriate ports
|
||||||
EXPOSE 80 8000
|
EXPOSE 8080
|
||||||
|
|
||||||
CMD ["/usr/bin/supervisord"]
|
CMD ["/usr/bin/supervisord"]
|
||||||
|
15
container/ports.conf
Normal file
15
container/ports.conf
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# If you just change the port or add more ports here, you will likely also
|
||||||
|
# have to change the VirtualHost statement in
|
||||||
|
# /etc/apache2/sites-enabled/000-default.conf
|
||||||
|
|
||||||
|
Listen 8080
|
||||||
|
|
||||||
|
<IfModule ssl_module>
|
||||||
|
Listen 443
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mod_gnutls.c>
|
||||||
|
Listen 443
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
@ -39,7 +39,7 @@ you already have docker installed) :
|
|||||||
|
|
||||||
make build
|
make build
|
||||||
make daemon
|
make daemon
|
||||||
curl http://localhost/app
|
curl http://localhost:8080/app
|
||||||
|
|
||||||
|
|
||||||
Coding style
|
Coding style
|
||||||
|
Loading…
Reference in New Issue
Block a user