2023-04-13 14:10:40 +02:00
|
|
|
FROM httpd:2.4-alpine
|
|
|
|
|
2023-09-26 10:34:46 +02:00
|
|
|
ENV CKAN_PORT=5000
|
|
|
|
ENV PYCSW_PORT=8000
|
2024-04-30 13:08:35 +02:00
|
|
|
ENV PYCSW_COMPOSE_SERVICE=pycsw
|
|
|
|
ENV CKAN_COMPOSE_SERVICE=ckan
|
|
|
|
ENV CKAN_DEV_COMPOSE_SERVICE=ckan-dev
|
2023-04-13 14:10:40 +02:00
|
|
|
ENV APACHE_PORT=80
|
|
|
|
ENV APACHE_LOG_DIR=/var/log/apache
|
|
|
|
ENV APACHE_ROOT=/usr/local/apache2
|
|
|
|
ENV APACHE_DOCUMENT_ROOT=${APACHE_ROOT}/htdocs
|
2023-07-26 10:25:03 +02:00
|
|
|
ENV PROXY_SERVER_NAME=localhost
|
2023-04-13 14:10:40 +02:00
|
|
|
|
2023-07-26 10:25:03 +02:00
|
|
|
ENV PROXY_CKAN_LOCATION=/catalog
|
|
|
|
ENV PROXY_PYCSW_LOCATION=/csw
|
2024-04-30 13:08:35 +02:00
|
|
|
ENV PROXY_PYCSW_PROXY_PASS=http://${PYCSW_COMPOSE_SERVICE}:${PYCSW_PORT}
|
|
|
|
ENV PROXY_CKAN_PROXY_PASS=http://${CKAN_COMPOSE_SERVICE}:${CKAN_PORT}
|
2023-04-13 14:10:40 +02:00
|
|
|
|
|
|
|
RUN mkdir -p ${APACHE_LOG_DIR}
|
|
|
|
|
|
|
|
COPY setup/httpd.conf ${APACHE_ROOT}/conf/httpd.conf
|
|
|
|
COPY setup/index.html ${APACHE_DOCUMENT_ROOT}/index.html
|
|
|
|
|
|
|
|
EXPOSE ${APACHE_PORT}
|