2023-04-13 14:10:40 +02:00
# Base
APP_DIR=/srv/app
2022-07-12 10:44:55 +02:00
# Container names
NGINX_CONTAINER_NAME=nginx
REDIS_CONTAINER_NAME=redis
POSTGRESQL_CONTAINER_NAME=db
SOLR_CONTAINER_NAME=solr
CKAN_CONTAINER_NAME=ckan
WORKER_CONTAINER_NAME=ckan-worker
2023-04-13 14:10:40 +02:00
APACHE_CONTAINER_NAME=apache
PYCSW_CONTAINER_NAME=pycsw
2022-07-12 10:44:55 +02:00
2022-11-03 14:20:51 +01:00
# Host Ports
CKAN_PORT_HOST=5000
NGINX_PORT_HOST=81
NGINX_SSLPORT_HOST=8443
2023-08-09 14:05:35 +02:00
APACHE_PORT_HOST=81
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
CKAN_SOLR_URL=http://solr:${SOLR_PORT}/solr/ckan
TEST_CKAN_SOLR_URL=http://solr:${SOLR_PORT}/solr/ckan
# Redis
REDIS_VERSION=7-alpine
CKAN_REDIS_URL=redis://redis:6379/1
TEST_CKAN_REDIS_URL=redis://redis:6379/1
# 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
2023-07-26 10:25:03 +02:00
## Check CKAN__ROOT_PATH and CKANEXT__DCAT__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 `/`.
PROXY_SERVER_NAME=localhost
PROXY_CKAN_LOCATION=/catalog
PROXY_PYCSW_LOCATION=/csw
2023-04-13 14:10:40 +02:00
# pycsw
PYCSW_PORT=8000
2023-08-10 04:26:50 +02:00
CKAN_URL=http://localhost:81/catalog
PYCSW_URL=http://localhost:81/csw
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
POSTGRES_HOST=db
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
CKAN_SQLALCHEMY_URL=postgresql://ckandbuser:ckandbpassword@db/ckandb
CKAN_DATASTORE_WRITE_URL=postgresql://ckandbuser:ckandbpassword@db/datastore
2021-01-15 16:05:22 +01:00
CKAN_DATASTORE_READ_URL=postgresql://datastore_ro:datastore@db/datastore
2021-10-29 17:05:48 +02:00
# Test database connections
TEST_CKAN_SQLALCHEMY_URL=postgres://ckan:ckan@db/ckan_test
TEST_CKAN_DATASTORE_WRITE_URL=postgresql://ckan:ckan@db/datastore_test
TEST_CKAN_DATASTORE_READ_URL=postgresql://datastore_ro:datastore@db/datastore_test
2021-10-29 14:01:58 +02:00
2021-10-29 17:05:48 +02:00
# CKAN core
2023-04-20 12:17:21 +02:00
## If use docker-compose.ghcr.yml only "*.*.*" versions available in: https://github.com/mjanez/ckan-docker/pkgs/container/ckan-spatial
2023-06-22 09:58:53 +02:00
CKAN_VERSION=2.9.9
2021-10-29 17:05:48 +02:00
CKAN_SITE_ID=default
2023-07-26 10:25:03 +02:00
# CKAN_SITE_URL = http:/ or https:/ + PROXY_SERVER_NAME. Optionally the APACHE_HOST_PORT if different from 80
2023-08-10 04:26:50 +02:00
CKAN_SITE_URL=http://localhost:81
2023-04-13 14:10:40 +02:00
CKAN__ROOT_PATH=/catalog/{{LANG}}
2021-10-29 17:05:48 +02:00
CKAN_PORT=5000
2023-07-20 13:19:53 +02:00
CKAN__FAVICON=/catalog/base/images/ckan.ico
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
CKAN_SMTP_SERVER=smtp.corporateict.domain:25
CKAN_SMTP_STARTTLS=True
CKAN_SMTP_USER=user
CKAN_SMTP_PASSWORD=pass
CKAN_SMTP_MAIL_FROM=ckan@localhost
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"
2023-03-17 11:09:20 +01:00
CKAN__PREVIEW__TEXT_FORMATS="text plain text/plain text/turtle csv tsv rss txt json"
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"
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
2023-04-13 14:10:40 +02:00
CKAN__VIEWS__DEFAULT_VIEWS="image_view webpage_view text_view recline_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"
2022-11-03 14:20:51 +01:00
2021-10-29 17:05:48 +02:00
# Extensions
2023-08-09 11:04:07 +02:00
CKAN__PLUGINS="envvars stats text_view image_view webpage_view recline_view resourcedictionary datastore xloader harvest ckan_harvester 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 scheming_dcat_datasets scheming_dcat_groups scheming_dcat_organizations scheming_dcat pdf_view pages"
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
CKAN__HARVEST__MQ__PORT=6379
2023-01-18 10:43:32 +01:00
CKAN__HARVEST__MQ__REDIS_DB=1
2023-03-17 11:09:20 +01:00
2023-03-22 10:55:59 +01:00
# ckanext-xloader
CKANEXT__XLOADER__API_TOKEN=api_token
CKANEXT__XLOADER__JOBS__DB_URI=postgresql://ckan:ckan@db/ckan
2023-03-17 11:09:20 +01:00
# ckanext-dcat
2023-08-10 04:26:50 +02:00
CKANEXT__DCAT__BASE_URI=http://localhost:81/catalog
2023-03-17 11:09:20 +01:00
CKANEXT__DCAT__RDF_PROFILES="euro_dcat_ap_2 euro_dcat_ap"
# ckanext-spatial (Solr Backend - solr8-spatial)
CKANEXT__SPATIAL__SEARCH_BACKEND=solr-bbox
CKAN__SPATIAL__SRID=3857
CKANEXT__SPATIAL__COMMON_MAP__TYPE=custom
CKANEXT__SPATIAL__COMMON_MAP__CUSTOM__URL=https://rts.larioja.org/mapa-base/rioja/{z}/{x}/{y}.png
2023-05-07 13:03:20 +02:00
CKANEXT__SPATIAL__COMMON_MAP__ATTRIBUTION='Servicios de Teselas. <a href="https://www.ign.es/web/qsm-cnig">CNIG</a>, bajo <a href="http://creativecommons.org/licenses/by/4.0">CC BY 4.0</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
2023-08-09 10:51:04 +02:00
# ckanext-scheming_dcat
2023-09-02 11:06:40 +02:00
## CSW Endpoint for spatial metadata
CKANEXT__SCHEMING_DCAT_GEOMETADATA_BASE_URI=http://localhost:81/csw
2023-08-09 10:51:04 +02:00
## Scheming: setup_scheming.sh
CKANEXT__SCHEMING_DCAT_DATASET_SCHEMA="ckanext.scheming_dcat:schemas/geodcatap/geodcatap_dataset.yaml"
CKANEXT__SCHEMING_DCAT_GROUP_SCHEMAS="ckanext.scheming_dcat:schemas/geodcatap/geodcatap_group.json"
CKANEXT__SCHEMING_DCAT_ORGANIZATION_SCHEMAS="ckanext.scheming_dcat:schemas/geodcatap/geodcatap_org.json"
CKANEXT__SCHEMING_DCAT_PRESETS="ckanext.scheming_dcat:schemas/geodcatap/geodcatap_presets.json"
## Facets: setup_scheming.sh
2023-08-28 08:50:29 +02:00
CKANEXT__SCHEMING_DCAT_FACET_LIST="theme groups theme_eu dcat_type groups publisher_name publisher_type spatial_uri owner_org res_format frequency tags tag_uri conforms_to"
2023-08-09 10:51:04 +02:00
CKANEXT__SCHEMING_DCAT_ORGANIZATION_CUSTOM_FACETS=True
CKANEXT__SCHEMING_DCAT_GROUP_CUSTOM_FACETS=True
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
CKANEXT__PAGES__GROUP_MENU=False
CKANEXT__PAGES__ORGANIZATION_MENU=False
2023-08-14 02:58:31 +02:00
2023-08-09 11:04:07 +02:00
# WIP: ckanext-sparql_interface
2023-08-09 10:51:04 +02:00
CKANEXT__SPARQL__ENDPOINT_URL=https://dbpedia.org/sparql
CKANEXT__SPARQL__HIDE_ENDPOINT_URL=False