2022-07-11 13:32:17 +02:00
|
|
|
FROM nginx:stable-alpine
|
2020-09-17 11:42:27 +02:00
|
|
|
|
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
|
2023-07-26 10:25:03 +02:00
|
|
|
ENV PROXY_SERVER_NAME=localhost
|
|
|
|
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-07-26 10:25:03 +02:00
|
|
|
|
2023-04-13 14:10:40 +02:00
|
|
|
ENV NGINX_PORT=80
|
2023-07-26 10:25:03 +02:00
|
|
|
ENV NGINX_LOG_DIR=/var/log/nginx
|
|
|
|
ENV NGINX_DIR=/etc/nginx
|
|
|
|
|
2023-08-09 14:05:35 +02:00
|
|
|
RUN mkdir -p ${NGINX_LOG_DIR} && \
|
2023-08-10 04:26:17 +02:00
|
|
|
mkdir -p ${NGINX_DIR}/certs
|
2020-09-17 11:42:27 +02:00
|
|
|
|
2022-07-20 14:41:52 +02:00
|
|
|
COPY setup/nginx.conf ${NGINX_DIR}/nginx.conf
|
2022-07-11 13:32:17 +02:00
|
|
|
COPY setup/index.html /usr/share/nginx/html/index.html
|
2023-08-09 10:56:39 +02:00
|
|
|
COPY setup/default.conf.template ${NGINX_DIR}/templates/default.conf.template
|
2023-08-10 04:26:17 +02:00
|
|
|
COPY setup/ckan-local.* ${NGINX_DIR}/certs/
|
2022-07-14 11:40:02 +02:00
|
|
|
|
2023-08-10 04:26:17 +02:00
|
|
|
EXPOSE ${NGINX_PORT}
|