Skip to content

Commit 0c3c1aa

Browse files
committed
Update Docker configurations: enhance Harvest privacy, switch to Nginx, and adjust proxy settings
1 parent b5f6a79 commit 0c3c1aa

4 files changed

Lines changed: 16 additions & 6 deletions

File tree

ckan/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY req_fixes req_fixes
1515

1616
# CKAN configuration & extensions
1717
## XLoader - 1.0.1-stable (mjanez/Forked fixed version) ##
18-
## Harvest - v1.5.6 (Worker with supervisor) ##
18+
## Harvest - v1.5.6 (mjanez Enhanced Privacy and Security for Remote Harvesting) ##
1919
## Geoview - v0.2.0 ##
2020
## Spatial - v2.1.1 ##
2121
## DCAT - v1.8.0-alpha (Latest old version for IEPNB) ##
@@ -39,7 +39,7 @@ RUN echo ${TZ} > /etc/timezone && \
3939
pip3 install --no-cache-dir -r ${APP_DIR}/src/ckanext-xloader/requirements.txt && \
4040
pip3 install --no-cache-dir -U requests[security] && \
4141
echo "ckan/ckanext-harvest" && \
42-
pip3 install --no-cache-dir -e git+https://github.com/ckan/ckanext-harvest.git@v1.5.6#egg=ckanext-harvest && \
42+
pip3 install --no-cache-dir -e git+https://github.com/mjanez/ckanext-harvest.git@v1.5.6#egg=ckanext-harvest && \
4343
pip3 install --no-cache-dir -r ${APP_DIR}/src/ckanext-harvest/requirements.txt && \
4444
echo "ckan/ckanext-geoview" && \
4545
pip3 install --no-cache-dir -e git+https://github.com/ckan/ckanext-geoview.git@v0.2.0#egg=ckanext-geoview && \

docker-compose.dev.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ volumes:
99

1010

1111
services:
12-
apache:
12+
nginx:
1313
build:
14-
context: apache/
14+
context: nginx/
1515
dockerfile: Dockerfile
16+
args:
17+
PROXY_CKAN_LOCATION: ${PROXY_CKAN_LOCATION}
18+
PROXY_PYCSW_LOCATION: ${PROXY_PYCSW_LOCATION}
1619
env_file:
1720
- .env
1821
environment:
1922
- CKAN_COMPOSE_SERVICE=${CKAN_DEV_COMPOSE_SERVICE}
20-
- PROXY_CKAN_PROXY_PASS=http://${CKAN_DEV_COMPOSE_SERVICE}:${CKAN_PORT}
23+
- PROXY_CKAN_PROXY_PASS=http://${CKAN_DEV_COMPOSE_SERVICE}:5000
2124
logging:
2225
driver: "json-file"
2326
options:
@@ -26,7 +29,8 @@ services:
2629
depends_on:
2730
- ${CKAN_DEV_COMPOSE_SERVICE}
2831
ports:
29-
- "0.0.0.0:${APACHE_PORT_HOST}:${APACHE_PORT}"
32+
- "0.0.0.0:${NGINX_PORT_HOST}:${NGINX_PORT}"
33+
- "0.0.0.0:${NGINX_SSLPORT_HOST}:${NGINX_SSLPORT}"
3034
restart: on-failure:3
3135

3236
ckan-dev:

docker-compose.ghcr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ services:
1212
build:
1313
context: nginx/
1414
dockerfile: Dockerfile
15+
args:
16+
PROXY_CKAN_LOCATION: ${PROXY_CKAN_LOCATION}
17+
PROXY_PYCSW_LOCATION: ${PROXY_PYCSW_LOCATION}
1518
env_file:
1619
- .env
1720
logging:

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ services:
1212
build:
1313
context: nginx/
1414
dockerfile: Dockerfile
15+
args:
16+
PROXY_CKAN_LOCATION: ${PROXY_CKAN_LOCATION}
17+
PROXY_PYCSW_LOCATION: ${PROXY_PYCSW_LOCATION}
1518
env_file:
1619
- .env
1720
logging:

0 commit comments

Comments
 (0)