23 lines
673 B
Docker
23 lines
673 B
Docker
|
FROM httpd:2.4-alpine
|
||
|
|
||
|
ENV CKAN_PORT_HOST=5000
|
||
|
ENV PYCSW_PORT_HOST=8000
|
||
|
ENV PYCSW_CONTAINER_NAME=pycsw
|
||
|
ENV CKAN_CONTAINER_NAME=ckan
|
||
|
ENV APACHE_PORT=80
|
||
|
ENV APACHE_LOG_DIR=/var/log/apache
|
||
|
ENV APACHE_ROOT=/usr/local/apache2
|
||
|
ENV APACHE_DOCUMENT_ROOT=${APACHE_ROOT}/htdocs
|
||
|
ENV APACHE_SERVER_NAME=localhost
|
||
|
|
||
|
ENV APACHE_CKAN_LOCATION=/
|
||
|
ENV APACHE_PYCSW_LOCATION=/csw
|
||
|
ENV APACHE_PYCSW_PROXY_PASS=http://${PYCSW_CONTAINER_NAME}:${PYCSW_PORT_HOST}
|
||
|
ENV APACHE_PROXY_PASS=http://${CKAN_CONTAINER_NAME}:${CKAN_PORT_HOST}
|
||
|
|
||
|
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}
|