diff --git a/.gitignore b/.gitignore index 7604569..54dbdff 100644 --- a/.gitignore +++ b/.gitignore @@ -282,4 +282,4 @@ pyrightconfig.json # End of https://www.toptal.com/developers/gitignore/api/python,visualstudiocode,pycharm+iml .git-old/* -.github \ No newline at end of file +.github diff --git a/README.md b/README.md index 511c630..0622588 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,9 @@ Directory layout: ## Running CKAN using docker-compose To start CKAN using docker-compose, simply change into the *compose* directory and run ```sh -cd compose/2.9 -docker-compose build -docker-compose up +cd compose/2.10 +docker compose --env-file .docker.env build +docker compose --env-file .docker.env up ``` Check if CKAN was succesfuly started on http://localhost:5000. diff --git a/compose/2.10/.docker.env b/compose/2.10/.docker.env new file mode 100644 index 0000000..d8f5ef1 --- /dev/null +++ b/compose/2.10/.docker.env @@ -0,0 +1,35 @@ +# Variables in this file will be used as build arguments when running +# docker-compose build and docker-compose up +# Verify correct substitution with "docker-compose config" +# If variables are newly added or enabled, please delete and rebuild the images to pull in changes: +# docker-compose down -v +# docker-compose build +# docker-compose up -d + +# Database +POSTGRES_PASSWORD=ckan +POSTGRES_PORT=5432 +DATASTORE_READONLY_PASSWORD=datastore + +# CKAN +CKAN_VERSION=2.10.4 +CKAN_SITE_ID=default +CKAN_SITE_URL=http://localhost:5000 +CKAN_PORT=5000 +CKAN_MAX_UPLOAD_SIZE_MB=10 + +# Datapusher +DATAPUSHER_VERSION=0.0.17 +DATAPUSHER_MAX_CONTENT_LENGTH=10485760 +DATAPUSHER_CHUNK_SIZE=16384 +DATAPUSHER_CHUNK_INSERT_ROWS=250 +DATAPUSHER_DOWNLOAD_TIMEOUT=30 +DATAPUSHER_SSL_VERIFY=False +DATAPUSHER_REWRITE_RESOURCES=True +DATAPUSHER_REWRITE_URL=http://ckan:5005 + +# SOLR +CKAN_CORE_NAME=ckan + +# Redis +REDIS_VERSION=6.0.7