Mercurial > dive4elements > river
annotate docker/Dockerfile.proxy @ 9803:a440ebd5c23b 3.2.x tip
Avoid using outdated mod_wsgi in Docker setup
Run Wiki in standalone mode behind reverse proxy, which is provided by
a more up-to-date Apache web server. The wiki container is still based
on CentOS 7, because the included SSO integration component cannot be
build with more recent libraries.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 21 Aug 2024 16:54:17 +0200 |
parents | |
children |
rev | line source |
---|---|
9803
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
1 # Docker file for proxy acting as central access point for D4E River |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
2 FROM httpd |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
3 MAINTAINER tom@intevation.de |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
4 |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
5 ADD httpd-proxy.conf $HTTPD_PREFIX/conf/extra/ |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
6 |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
7 # Activate necessary modules |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
8 RUN sed -i -e "/^#LoadModule proxy_module/s/#//;/^#LoadModule proxy_http_module/s/#//;/^#LoadModule proxy_ajp_module/s/#//;/^#LoadModule proxy_html_module/s/#//" $HTTPD_PREFIX/conf/httpd.conf |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
9 |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
10 # Include proxy configuration |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
11 RUN echo "Include conf/extra/httpd-proxy.conf" >> $HTTPD_PREFIX/conf/httpd.conf |