WSL/SLF GitLab Repository

README.md 1019 Bytes
Newer Older
Sam's avatar
Sam committed
1
2
# ckan-container

Sam's avatar
Sam committed
3
4
5
6
7
8
9
10
11
Containerised CKAN, Postgres, Solr using Docker.

Use cases:

- Replicating an existing database, then running a dev CKAN server.
- Running production CKAN with an existing database.

## Add secrets before running

Sam's avatar
Sam committed
12
13
_ckan.ini_ contains the config for CKAN, including connection urls

Sam's avatar
Sam committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
_.postgres.secret_ contains the password for postgres superuser only

_.db.secret_ contains the postgres connection credentials for
the remote database (for replication), in format:
CKAN_DB_HOST=xxxxxx.wsl.ch
CKAN_DB_NAME=ckan_default
CKAN_DB_USER=ckan_default
CKAN_DB_PASS=xxxxxx
CKAN_DOI_DB_NAME=envidat_doi

_.solr.secret_ contains the credentials for setting and
connecting as users for Solr, in format:
SOLR_ADMIN_PASS=xxxxxx
SOLR_CKAN_PASS=xxxxxx

Sam's avatar
Sam committed
29
30
31
32
## Modify .env for environment

- Change the _INTERNAL_REG_ variable to match the desired container registry.

Sam's avatar
Sam committed
33
34
## Running

Sam's avatar
Sam committed
35
36
- Once the .env is configured, build the images with `docker compose build`
- Then once the secrets are set, run with `docker compose up -d`