2024-04-30 13:08:35 +02:00
# Base
2023-04-13 14:10:40 +02:00
APP_DIR=/srv/app
2024-06-13 17:39:00 +02:00
# Sets Docker Compose project name to avoid resource conflicts between projects. Defaults to the folder name "ckan-docker" if not set.
#COMPOSE_PROJECT_NAME=ckan-docker-mytheme
2023-04-13 14:10:40 +02:00
2022-11-03 14:20:51 +01:00
# Host Ports
CKAN_PORT_HOST=5000
2024-08-27 11:56:42 +02:00
# Common proxy server for Apache or NGINX.
# Change all the PROXY_SERVER_PORT_HOST to PROXY_SERVER_HTTPS_PORT_HOST if you can use HTTPS instead of HTTP (Only for NGINX and not development compose)
2024-09-18 11:29:28 +02:00
PROXY_SERVER_BASE_PORT_HOST=81
2024-08-27 11:56:42 +02:00
PROXY_SERVER_HTTPS_PORT_HOST=8443
2024-09-18 12:03:52 +02:00
# Server port for the proxy server. Better using the SSL port for production, in DEV or if using balancer: PROXY_SERVER_PORT_HOST=PROXY_SERVER_BASE_PORT_HOST
2024-09-18 11:29:28 +02:00
PROXY_SERVER_PORT_HOST=${PROXY_SERVER_HTTPS_PORT_HOST}
NGINX_PORT_HOST=${PROXY_SERVER_BASE_PORT_HOST}
2024-08-27 11:56:42 +02:00
NGINX_SSLPORT_HOST=${PROXY_SERVER_HTTPS_PORT_HOST}
2024-09-18 11:29:28 +02:00
APACHE_PORT_HOST=${PROXY_SERVER_BASE_PORT_HOST}
2023-04-13 14:10:40 +02:00
PYCSW_PORT_HOST=8000
# Solr
2023-08-09 12:02:53 +02:00
SOLR_IMAGE_VERSION=2.9-solr9-spatial
2023-04-13 14:10:40 +02:00
SOLR_PORT=8983
2024-07-30 09:41:41 +02:00
SOLR_CKAN_DATABASE=ckan
2024-08-26 17:16:08 +02:00
CKAN_SOLR_URL=http://solr:${SOLR_PORT}/solr/${SOLR_CKAN_DATABASE}
TEST_CKAN_SOLR_URL=http://solr:${SOLR_PORT}/solr/${SOLR_CKAN_DATABASE}
2023-04-13 14:10:40 +02:00
# Redis
REDIS_VERSION=7-alpine
2024-07-30 09:41:41 +02:00
REDIS_PORT=6379
REDIS_CKAN_DATABASE=1
2024-08-26 17:16:08 +02:00
CKAN_REDIS_URL=redis://redis:${REDIS_PORT}/${REDIS_CKAN_DATABASE}
TEST_CKAN_REDIS_URL=redis://redis:${REDIS_PORT}/${REDIS_CKAN_DATABASE}
2023-04-13 14:10:40 +02:00
# NGINX
NGINX_PORT=80
NGINX_SSLPORT=443
2023-07-26 10:25:03 +02:00
NGINX_LOG_DIR=/var/log/nginx
2023-04-13 14:10:40 +02:00
# Apache HTTP Server
2023-04-17 09:50:16 +02:00
APACHE_VERSION=2.4-alpine
2023-04-13 14:10:40 +02:00
APACHE_PORT=80
APACHE_LOG_DIR=/var/log/apache
2023-07-26 10:25:03 +02:00
2023-08-14 03:04:18 +02:00
#NGINX/APACHE
2024-07-30 09:41:41 +02:00
## Check CKAN__ROOT_PATH and CKANEXT__DCAT__BASE_URI and CKANEXT__SCHEMINGDCAT_GEOMETADATA_BASE_URI. If you don't need to use domain locations, it is better to use the nginx configuration. Leave blank or use the root `/`. If you dont need PROXY_SERVER_PORT_HOST (e.g. is 80), edit the PROXY_SERVER_URL and remove :${PROXY_SERVER_PORT_HOST}
2023-07-26 10:25:03 +02:00
PROXY_SERVER_NAME=localhost
2024-09-18 11:29:28 +02:00
# URL protocol. Change to https if you use SSL
PROXY_SERVER_PROTOCOL=http
PROXY_SERVER_URL=${PROXY_SERVER_PROTOCOL}://${PROXY_SERVER_NAME}:${PROXY_SERVER_PORT_HOST}
2023-07-26 10:25:03 +02:00
PROXY_CKAN_LOCATION=/catalog
PROXY_PYCSW_LOCATION=/csw
2023-04-13 14:10:40 +02:00
# pycsw
PYCSW_PORT=8000
2024-08-26 17:16:08 +02:00
CKAN_URL=${PROXY_SERVER_URL}${PROXY_CKAN_LOCATION}
PYCSW_URL=${PROXY_SERVER_URL}${PROXY_PYCSW_LOCATION}
2023-04-13 14:10:40 +02:00
# SCHEMAS: ckan2pycsw/model/dataset.py - Dataset type
PYCSW_CKAN_SCHEMA=iso19139_geodcatap
PYCSW_OUPUT_SCHEMA=iso19139_inspire
2023-04-22 15:57:09 +02:00
# ckan-pycsw schedule
## ckan2pycsw days between each scheduler job
2023-04-21 09:30:56 +02:00
PYCSW_CRON_DAYS_INTERVAL=2
2023-04-22 15:57:09 +02:00
# ckan2pycsw hour of start of the scheduler job (0-23)
PYCSW_CRON_HOUR_START=4
## Timezone
TZ=UTC
2022-11-03 14:20:51 +01:00
2021-10-29 17:05:48 +02:00
# CKAN databases
2023-06-13 14:24:18 +02:00
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres
2024-08-26 17:16:08 +02:00
POSTGRES_HOST=db
2023-06-13 14:24:18 +02:00
CKAN_DB_USER=ckandbuser
CKAN_DB_PASSWORD=ckandbpassword
CKAN_DB=ckandb
2021-01-15 16:05:22 +01:00
DATASTORE_READONLY_USER=datastore_ro
DATASTORE_READONLY_PASSWORD=datastore
2023-06-13 14:24:18 +02:00
DATASTORE_DB=datastore
2024-07-30 09:41:41 +02:00
CKAN_SQLALCHEMY_URL=postgresql://${CKAN_DB_USER}:${CKAN_DB_PASSWORD}@${POSTGRES_HOST}/${CKAN_DB}
CKAN_DATASTORE_WRITE_URL=postgresql://${CKAN_DB_USER}:${CKAN_DB_PASSWORD}@${POSTGRES_HOST}/${DATASTORE_DB}
CKAN_DATASTORE_READ_URL=postgresql://${DATASTORE_READONLY_USER}:${DATASTORE_READONLY_PASSWORD}@${POSTGRES_HOST}/${DATASTORE_DB}
2021-01-15 16:05:22 +01:00
2021-10-29 17:05:48 +02:00
# Test database connections
2024-07-30 09:41:41 +02:00
CKAN_TEST_DB=ckan_test
DATASTORE_TEST_DB=datastore_test
TEST_CKAN_SQLALCHEMY_URL=postgres://${CKAN_DB_USER}:${CKAN_DB_PASSWORD}@${POSTGRES_HOST}/${CKAN_TEST_DB}
TEST_CKAN_DATASTORE_WRITE_URL=postgresql://${CKAN_DB_USER}:${CKAN_DB_PASSWORD}@${POSTGRES_HOST}/${DATASTORE_TEST_DB}
TEST_CKAN_DATASTORE_READ_URL=postgresql://${DATASTORE_READONLY_USER}:${DATASTORE_READONLY_PASSWORD}@${POSTGRES_HOST}/${DATASTORE_TEST_DB}
2021-10-29 14:01:58 +02:00
2023-10-05 13:57:06 +02:00
# Dev settings
USE_HTTPS_FOR_DEV=false
2024-04-30 13:08:35 +02:00
CKAN_DEV_COMPOSE_SERVICE=ckan-dev
2023-10-05 13:57:06 +02:00
2021-10-29 17:05:48 +02:00
# CKAN core
2023-10-02 11:22:13 +02:00
## If use docker-compose.ghcr.yml only "*.*.*" versions available in: https://github.com/mjanez/ckan-docker/pkgs/container/ckan-docker
2024-09-18 11:29:28 +02:00
CKAN_VERSION=2.10.5
2021-10-29 17:05:48 +02:00
CKAN_SITE_ID=default
2024-08-26 17:16:08 +02:00
# CKAN_SITE_URL = http:/ or https:/ + PROXY_SERVER_NAME. Optionally the APACHE_HOST_PORT if different from 80
2024-07-30 09:41:41 +02:00
CKAN_SITE_URL=${PROXY_SERVER_URL}
CKAN__ROOT_PATH=${PROXY_CKAN_LOCATION}/{{LANG}}
CKAN__FAVICON=${PROXY_CKAN_LOCATION}/base/images/ckan.ico
2024-09-19 15:08:32 +02:00
CKAN__SITE_LOGO=${PROXY_CKAN_LOCATION}/images/default/ckan-logo.png
2024-09-16 12:36:53 +02:00
# CKAN site info
2024-09-19 15:08:32 +02:00
CKAN__SITE_TITLE="CKAN Open Data"
CKAN__SITE_DESCRIPTION="ckan-docker *spatial Open Data portal"
CKAN__SITE_INTRO_TEXT="[![ckan-docker-spatial](https://img.shields.io/badge/ckan_docker_spatial-CKAN_${CKAN_VERSION}-brightgreen?style=social&logo=github#center)](https://github.com/mjanez/ckan-docker)\n[`ckan-docker *spatial`](https://github.com/mjanez/ckan-docker) is a ready-to-use development environment for [CKAN](https://github.com/ckan/ckan), the world’ s leading open-source data portal platform."
CKAN__SITE_ABOUT=${CKAN__SITE_INTRO_TEXT}
2024-09-18 11:29:28 +02:00
# Custom licenses that are aligned with DCAT-AP (Also works with DEV Mode)
LICENSES_GROUP_URL=file://${APP_DIR}/src/ckanext-schemingdcat/ckanext/schemingdcat/public/static/licenses.json
2023-03-22 10:55:59 +01:00
CKAN___BEAKER__SESSION__SECRET=CHANGE_ME
2023-01-19 13:34:17 +01:00
# See https://docs.ckan.org/en/latest/maintaining/configuration.html#api-token-settings
2023-03-22 10:55:59 +01:00
CKAN___API_TOKEN__JWT__ENCODE__SECRET=string:CHANGE_ME
CKAN___API_TOKEN__JWT__DECODE__SECRET=string:CHANGE_ME
2021-10-29 17:05:48 +02:00
CKAN_SYSADMIN_NAME=ckan_admin
CKAN_SYSADMIN_PASSWORD=test1234
CKAN_SYSADMIN_EMAIL=your_email@example.com
CKAN_STORAGE_PATH=/var/lib/ckan
2024-02-21 09:16:47 +01:00
CKAN_LOGS_PATH=/var/log
2024-09-23 21:12:27 +02:00
# SMTP settings
CKAN__SMTP_ENABLED=False
2021-10-29 17:05:48 +02:00
CKAN_SMTP_SERVER=smtp.corporateict.domain:25
CKAN_SMTP_STARTTLS=True
CKAN_SMTP_USER=user
CKAN_SMTP_PASSWORD=pass
2024-07-30 09:41:41 +02:00
CKAN_SMTP_MAIL_FROM=ckan@${PROXY_SERVER_NAME}
2023-03-17 11:09:20 +01:00
## Customize which text formats the text_view plugin will show
CKAN__PREVIEW__JSON_FORMATS="json jsonld"
# html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json
2023-04-13 14:10:40 +02:00
CKAN__PREVIEW__XML_FORMATS="xml rdf rdf+xml owl+xml atom rss turtle ttl n3 n-triples"
2024-09-23 08:10:25 +02:00
CKAN__PREVIEW__TEXT_FORMATS="text plain text/plain text/turtle rss txt"
2023-04-13 14:10:40 +02:00
CKAN__PREVIEW__LOADABLE="html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json arcgis_rest"
2024-04-12 15:16:53 +02:00
# ckanext-spatial: Allow Solr local params: https://github.com/ckan/ckanext-spatial/issues/328
2024-04-15 08:44:58 +02:00
CKAN__SEARCH__SOLR_ALLOWED_QUERY_PARSERS=field
2024-04-15 10:39:55 +02:00
# CORS Settings. If True, all origins will be allowed (the response header Access-Control-Allow-Origin is set to ‘ *’ ). If False, only origins from the ckan.cors.origin_whitelist setting will be allowed.
CKAN__CORS__ORIGIN_ALLOW_ALL=False
CKAN__CORS__ORIGIN_WHITELIST=""
2024-09-16 12:36:53 +02:00
# Enables or disable collaborators in individual datasets (https://docs.ckan.org/en/2.9/maintaining/authorization.html#dataset-collaborators)
CKAN__AUTH__ALLOW_DATASET_COLLABORATORS=False
CKAN__AUTH__ALLOW_ADMIN_COLLABORATORS=False
# Default number of facets shown in search results. Default 10.
SEARCH__FACETS__DEFAULT=4
2024-09-18 11:29:28 +02:00
# Enable or disable the DataStore SQL search backend. Default is False.
CKAN__DATASTORE__SQLSEARCH__ENABLED=True
2023-04-13 14:10:40 +02:00
2023-03-17 11:09:20 +01:00
## Resource Proxy settings
### Preview size limit, default: 1MB
CKAN__RESOURCE_PROXY__MAX_FILE_SIZE=50048576
## Size of chunks to read/write__
CKAN__RESOURCE_PROXY__CHUNK_SIZE=4096
## Default timeout for fetching proxied items
CKAN__RESOURCE_PROXY__TIMEOUT=10
2024-09-23 08:10:25 +02:00
CKAN__VIEWS__DEFAULT_VIEWS="image_view video_view audio_view webpage_view datatables_view text_view wmts_view geojson_view geo_view shp_view pdf_view"
2021-01-15 16:05:22 +01:00
2023-04-13 14:10:40 +02:00
# Localization
CKAN__LOCALE_DEFAULT="en"
CKAN__LOCALE_ORDER="en es pt_BR ja it cs_CZ ca fr el sv sr sr@latin no sk fi ru de pl nl bg ko_KR hu sa sl lv"
2023-10-11 11:49:22 +02:00
CKAN__LOCALES_OFFERED="en es pt_BR ja it cs_CZ ca fr el sv sr sr@latin no sk fi ru de pl nl bg ko_KR hu sa sl lv"
2022-11-03 14:20:51 +01:00
2021-10-29 17:05:48 +02:00
# Extensions
2024-09-19 15:08:32 +02:00
CKAN__PLUGINS="activity stats image_view video_view audio_view webpage_view text_view datatables_view resourcedictionary datastore xloader spatial_metadata spatial_query spatial_harvest_metadata_api csw_harvester waf_harvester doc_harvester resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat_ckan_harvester schemingdcat_xls_harvester harvest pdf_view pages fluent envvars"
2023-03-17 11:09:20 +01:00
2023-04-13 14:10:40 +02:00
# ckanext-harvest
2021-10-29 17:05:48 +02:00
CKAN__HARVEST__MQ__TYPE=redis
CKAN__HARVEST__MQ__HOSTNAME=redis
2024-07-30 09:41:41 +02:00
CKAN__HARVEST__MQ__PORT=${REDIS_PORT}
CKAN__HARVEST__MQ__REDIS_DB=${REDIS_CKAN_DATABASE}
2024-02-21 09:16:47 +01:00
# Clean-up mechanism for the harvest log table. The default is 30 days.
CKAN__HARVEST__LOG_TIMEFRAME=40
2023-03-17 11:09:20 +01:00
2023-03-22 10:55:59 +01:00
# ckanext-xloader
2024-07-30 09:41:41 +02:00
CKANEXT__XLOADER__JOBS__DB_URI=postgresql://${CKAN_DB_USER}:${CKAN_DB_PASSWORD}@${POSTGRES_HOST}/${CKAN_DB}
2023-03-22 10:55:59 +01:00
2023-03-17 11:09:20 +01:00
# ckanext-dcat
2023-09-22 11:02:40 +02:00
CKANEXT__DCAT__BASE_URI=${CKAN_URL}
2024-09-23 08:10:25 +02:00
# Default profile(s). Instead of this envvar, it's possible to specify all the profile(s) availables to be used for serialization using the profiles parameter: http://localhost:5000/catalog.xml?profiles=eu_dcat_ap_2,es_dcat
CKANEXT__DCAT__RDF_PROFILES='eu_dcat_ap_2 eu_dcat_ap_scheming'
2023-09-25 10:00:39 +02:00
# The custom endpoint **must** start with a forward slash (`/`) and contain the `{_format}` placeholder. The endpoint is added to the CKAN_SITE_URL and CKAN__ROOT_PATH, example: http://localhost:5000/catalog/catalog.rdf
CKANEXT__DCAT__DEFAULT_CATALOG_ENDPOINT='/catalog.{_format}'
2023-03-17 11:09:20 +01:00
2024-04-12 15:16:53 +02:00
# ckanext-spatial (Solr Backend - solr9-spatial: https://docs.ckan.org/projects/ckanext-spatial/en/latest/spatial-search.html#choosing-a-backend-for-the-spatial-search)
CKANEXT__SPATIAL__SEARCH_BACKEND=solr-spatial-field
2023-03-17 11:09:20 +01:00
CKAN__SPATIAL__SRID=3857
CKANEXT__SPATIAL__COMMON_MAP__TYPE=custom
2023-10-16 18:07:11 +02:00
CKANEXT__SPATIAL__COMMON_MAP__CUSTOM__URL=http://a.tile.openstreetmap.org/{z}/{x}/{y}.png
CKANEXT__SPATIAL__COMMON_MAP__ATTRIBUTION='Map tiles by <a href="http://openstreetmap.org">OpenStreetMap</a> (<a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>)'
2023-03-17 11:09:20 +01:00
# ckanext-geoview
CKANEXT__GEOVIEW__GEOJSON__MAX_FILE_SIZE=100000000
CKANEXT__GEOVIEW__OL_VIEWER__FORMATS="wms wfs geojson gml kml"
CKANEXT__GEOVIEW__SHP_VIEWER__SRID=3857
CKANEXT__GEOVIEW__SHP_VIEWER__ENCODING=UTF-8
2024-03-21 14:48:50 +01:00
# ckanext-schemingdcat
2023-09-02 11:06:40 +02:00
## CSW Endpoint for spatial metadata
2024-03-21 14:48:50 +01:00
CKANEXT__SCHEMINGDCAT_GEOMETADATA_BASE_URI=${PYCSW_URL}
2023-08-09 10:51:04 +02:00
## Scheming: setup_scheming.sh
2024-09-22 02:37:13 +02:00
CKANEXT__SCHEMINGDCAT_DATASET_SCHEMA="ckanext.schemingdcat:schemas/geodcat_ap/eu_geodcat_ap_full.yaml"
2024-08-26 17:16:08 +02:00
CKANEXT__SCHEMINGDCAT_GROUP_SCHEMAS="ckanext.schemingdcat:schemas/geodcat_ap/eu_geodcat_ap_group.json"
CKANEXT__SCHEMINGDCAT_ORGANIZATION_SCHEMAS="ckanext.schemingdcat:schemas/geodcat_ap/eu_geodcat_ap_org.json"
2024-03-21 14:48:50 +01:00
CKANEXT__SCHEMINGDCAT_PRESETS="ckanext.schemingdcat:schemas/default_presets.json ckanext.fluent:presets.json"
2023-08-09 10:51:04 +02:00
## Facets: setup_scheming.sh
2024-09-16 12:36:53 +02:00
CKANEXT__SCHEMINGDCAT_FACET_LIST="dataset_scope theme groups theme_eu language dcat_type groups publisher_name publisher_type spatial_uri owner_org res_format frequency tags tag_uri conforms_to"
2024-03-21 14:48:50 +01:00
CKANEXT__SCHEMINGDCAT_ORGANIZATION_CUSTOM_FACETS=True
CKANEXT__SCHEMINGDCAT_GROUP_CUSTOM_FACETS=True
2024-05-28 13:05:01 +02:00
CKANEXT__SCHEMINGDCAT_DEFAULT_PACKAGE_ITEM_ICON="theme"
CKANEXT__SCHEMINGDCAT_DEFAULT_PACKAGE_ITEM_SHOW_SPATIAL=True
2024-06-13 17:39:00 +02:00
CKANEXT__SCHEMINGDCAT_SHOW_METADATA_TEMPLATES_TOOLBAR=False
2024-06-26 11:11:46 +02:00
CKANEXT__METADATA_TEMPLATES_SEARCH_IDENTIFIER="schemingdcat_xls-template"
2024-07-24 12:36:47 +02:00
CKANEXT__SCHEMINGDCAT_ENDPOINTS_YAML="endpoints.yaml"
2024-09-19 15:08:32 +02:00
CKANEXT__SCHEMINGDCAT__SOCIAL_GITHUB="https://github.com/mjanez/ckanext-schemingdcat"
CKANEXT__SCHEMINGDCAT__SOCIAL_X="https://x.com/ckanproject"
CKANEXT__SCHEMINGDCAT__SOCIAL_LINKEDIN="https://www.linkedin.com/company/ckanproject"
2023-08-09 10:51:04 +02:00
2023-08-14 02:58:31 +02:00
# ckanext-pages
CKANEXT__PAGES__ALOW_HTML=False
CKANEXT__PAGES__ORGANIZATION=True
CKANEXT__PAGES__GROUP=True
2023-08-14 03:04:18 +02:00
CKANEXT__PAGES__ABOUT_MENU=False
2023-10-11 11:49:22 +02:00
CKANEXT__PAGES__GROUP_MENU=True
2024-09-19 15:08:32 +02:00
CKANEXT__PAGES__ORGANIZATION_MENU=True
# ckan-pycsw
CSW_IDENTIFICATION_TITLE="Sample Geospatial Catalogue"
CSW_IDENTIFICATION_ABSTRACT="OGC CSW server powered by pycsw"
CSW_PROVIDER_NAME="ckan-docker development team"
CSW_PROVIDER_URL="https://github.com/mjanez/ckan-docker"
CSW_CONTACT_NAME="ckan-docker development team"
CSW_CONTACT_POSITION="Site Administrator"
CSW_CONTACT_ADDRESS="ckan-docker development team"
CSW_CONTACT_CITY="Madrid"
CSW_CONTACT_STATE_OR_PROVINCE="Madrid"
CSW_CONTACT_POSTAL_CODE="28001"
CSW_CONTACT_COUNTRY="Spain"
CSW_CONTACT_EMAIL=${CKAN_SYSADMIN_EMAIL}
CSW_CONTACT_URL=${CKAN_URL}
## Date of the last update of the metadata. ISO 8601 format): YYYY-MM-DD
CSW_INSPIRE_DATE="2024-01-01"
## Keywords separated by commas based on the GEMET Thesaurus keywordValue: https://inspire.ec.europa.eu/schemas/common/1.0/enums/enum_eng.xsd
CSW_INSPIRE_GEMET_KEYWORDS="Utility and governmental services"
# The level of INSPIRE conformance for spatial data sets and services (conformant, notConformant, notEvaluated)
CSW_INSPIRE_CONFORMITY="notEvaluated"
CSW_INSPIRE_CONTACT_NAME=${CSW_CONTACT_NAME}
CSW_INSPIRE_CONTACT_EMAIL=${CKAN_SYSADMIN_EMAIL}
# Temporal extent of the service (in ISO 8601 format). Either a single date (i.e. YYYY-MM-DD), or an extent (i.e. YYYY-MM-DD/YYYY-MM-DD)
CSW_INSPIRE_TEMP_EXTENT="2024-01-01"