forked from ckan/ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
Quick Setup
Sol Lee edited this page Sep 10, 2025
·
11 revisions
Install Docker by following the following instructions: Install Docker Engine on Ubuntu
To verify a successful Docker installation, run docker run hello-world and docker version. These commands should output versions for client and server.
$ git clone https://github.com/depositar/ckan-docker-base.git
$ cd ckan-docker-base
$ ./build.sh build depositar base
$ cd ..
$ git clone https://github.com/depositar/ckan-solr.git
$ docker build -t depositar/ckan-solr -f ckan-solr/solr-8/Dockerfile.spatial ckan-solr/solr-8
$ sudo apt update && sudo apt install opendkim-tools
$ opendkim-genkey -b 2048 -h rsa-sha256 -r -v --subdomains -s mail -d <domain>
$ sed -i 's/h=rsa-sha256/h=sha256/' mail.txt
$ sudo mv mail.private postfix/dkim-keys/<domain>.private
Add the created mail.txt file to your DNS records.
PS. Also add the SPF record to your DNS records.
$ git clone https://github.com/depositar/depositar-docker.git
$ cd depositar-docker
$ cp .env.example .env # for the production site, edit the `CERTBOT_EMAIL` in the `.env`.
$ docker compose build
$ docker compose up
The depositar should be running at https://localhost:8443 (please ignore certificate warnings).
There is a sysadmin user: ckan_admin (PW: test1234) by default.
$ docker compose down -v
(use -v to delete the named volumes)