-
Notifications
You must be signed in to change notification settings - Fork 24
/
.docker-compose.datagov-theme.yaml
57 lines (53 loc) · 2.54 KB
/
.docker-compose.datagov-theme.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.2'
services:
nginx:
ports:
- "8080:8080"
ckan:
image: viderum/ckan-cloud-docker:ckan-latest-datagov-theme
ports:
- "5000:5000"
build:
args:
EXTRA_PACKAGES: supervisor cron
EXTRA_FILESYSTEM: "./overrides/datagov/filesystem/"
ROOT_INIT: |
mkdir -p /var/log/supervisor
chown ckan:ckan /var/log/supervisor
POST_INSTALL: |
install_standard_ckan_extension_github -r ckan/ckanext-spatial &&\
install_standard_ckan_extension_github -r ckan/ckanext-xloader &&\
install_standard_ckan_extension_github -r datagovuk/ckanext-report &&\
install_standard_ckan_extension_github -r ckan/ckanext-archiver &&\
install_standard_ckan_extension_github -r ckan/ckanext-harvest &&\
install_standard_ckan_extension_github -r datopian/ckanext-logstash &&\
install_standard_ckan_extension_github -r ckan/ckanext-dcat ckanext-dcat &&\
install_standard_ckan_extension_github -r datopian/ckanext-geodatagov &&\
install_standard_ckan_extension_github -r datopian/ckanext-datajson -b datagov &&\
install_standard_ckan_extension_github -r akariv/USMetadata -e ckanext-usmetadata &&\
install_standard_ckan_extension_github -r GSA/ckanext-datagovtheme -b main
POST_DOCKER_BUILD: |
mkdir -p /var/tmp/ckan/dynamic_menu &&\
mkdir -p /var/log/ckan/std/
CKAN_INIT: |
ckan-paster --plugin=ckanext-archiver archiver init -c "CKAN_CONFIG/production.ini"
ckan-paster --plugin=ckanext-report report initdb -c "CKAN_CONFIG/production.ini"
ckan-paster --plugin=ckanext-harvest harvester initdb -c "CKAN_CONFIG/production.ini"
cp /var/lib/ckan/main.css /usr/lib/ckan/venv/src/ckan/ckan/public/base/css/main.min.css || true
crontab /etc/crontab-harvester
service supervisor start #rev1
environment:
- CKAN_CONFIG_TEMPLATE_PREFIX=datagov-theme-
jobs:
image: viderum/ckan-cloud-docker:ckan-latest-datagov-theme
environment:
- CKAN_CONFIG_TEMPLATE_PREFIX=datagov-theme-
db:
image: mdillon/postgis
build:
args:
DB_INIT: |
psql --dbname="ckan" -c "CREATE EXTENSION IF NOT EXISTS postgis; \
CREATE EXTENSION IF NOT EXISTS postgis_topology; \
CREATE EXTENSION IF NOT EXISTS fuzzystrmatch; \
CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;"