Fix host_ports/ports in Apache/NGINX Dockerfiles

This commit is contained in:
mjanez 2023-09-26 10:34:46 +02:00 committed by GitHub
parent 6e862868ae
commit 39611bec41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
FROM httpd:2.4-alpine
ENV CKAN_PORT_HOST=5000
ENV PYCSW_PORT_HOST=8000
ENV CKAN_PORT=5000
ENV PYCSW_PORT=8000
ENV PYCSW_CONTAINER_NAME=pycsw
ENV CKAN_CONTAINER_NAME=ckan
ENV APACHE_PORT=80
@ -12,8 +12,8 @@ ENV PROXY_SERVER_NAME=localhost
ENV PROXY_CKAN_LOCATION=/catalog
ENV PROXY_PYCSW_LOCATION=/csw
ENV PROXY_PYCSW_PROXY_PASS=http://${PYCSW_CONTAINER_NAME}:${PYCSW_PORT_HOST}
ENV PROXY_CKAN_PROXY_PASS=http://${CKAN_CONTAINER_NAME}:${CKAN_PORT_HOST}
ENV PROXY_PYCSW_PROXY_PASS=http://${PYCSW_CONTAINER_NAME}:${PYCSW_PORT}
ENV PROXY_CKAN_PROXY_PASS=http://${CKAN_CONTAINER_NAME}:${CKAN_PORT}
RUN mkdir -p ${APACHE_LOG_DIR}

View File

@ -1,14 +1,14 @@
FROM nginx:stable-alpine
ENV CKAN_PORT_HOST=5000
ENV PYCSW_PORT_HOST=8000
ENV CKAN_PORT=5000
ENV PYCSW_PORT=8000
ENV PYCSW_CONTAINER_NAME=pycsw
ENV CKAN_CONTAINER_NAME=ckan
ENV PROXY_SERVER_NAME=localhost
ENV PROXY_CKAN_LOCATION=/catalog
ENV PROXY_PYCSW_LOCATION=/csw
ENV PROXY_PYCSW_PROXY_PASS=http://${PYCSW_CONTAINER_NAME}:${PYCSW_PORT_HOST}
ENV PROXY_CKAN_PROXY_PASS=http://${CKAN_CONTAINER_NAME}:${CKAN_PORT_HOST}
ENV PROXY_PYCSW_PROXY_PASS=http://${PYCSW_CONTAINER_NAME}:${PYCSW_PORT}
ENV PROXY_CKAN_PROXY_PASS=http://${CKAN_CONTAINER_NAME}:${CKAN_PORT}
ENV NGINX_PORT=80
ENV NGINX_LOG_DIR=/var/log/nginx