-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
62 lines (61 loc) · 1.81 KB
/
docker-compose.yml
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
58
59
60
61
62
---
version: "3.7"
services:
app:
image: datagov/ckanext-datagovcatalog:${CKAN_VERSION} # ensures docker-compose will rebuild the right image in case we change CKAN_VERSION
build:
context: .
args:
CKAN_VERSION: ${CKAN_VERSION}
environment:
CKAN__PLUGINS: envvars harvest ckan_harvester datagovcatalog
CKAN_SQLALCHEMY_URL: postgresql://ckan_default:pass@db/ckan_test
CKAN_DATASTORE_WRITE_URL: postgresql://datastore_write:pass@db/datastore_test
CKAN_DATASTORE_READ_URL: postgresql://datastore_read:pass@db/datastore_test
CKAN_SOLR_URL: http://solr:8983/solr/ckan
CKAN_REDIS_URL: redis://redis:6379/
CKAN_DATAPUSHER_URL: http://localhost:8080/ # datapusher is not really enabled
CKAN_SITE_ID: default
CKAN_SITE_URL: http://ckan:5000
CKAN_SYSADMIN_NAME: admin
CKAN_SYSADMIN_PASSWORD: password
CKAN_SYSADMIN_EMAIL: your_email@example.com
CKAN__STORAGE_PATH: /var/lib/ckan
PYTHONDONTWRITEBYTECODE: 1
ports:
- "5000:5000"
depends_on:
- db
- redis
- solr
volumes:
- ./ckanext:/srv/app/ckanext
- ./test.sh:/srv/app/test.sh
- ./test.ini:/srv/app/test.ini
- ./setup.py:/srv/app/setup.py
- /etc/timezone:/etc/timezone:ro
- ./docker-entrypoint.d/:/docker-entrypoint.d/
db:
image: ckan/ckan-postgres-dev:2.9
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
healthcheck:
test: ["CMD", "pg_isready -u postgres"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
redis:
image: redis:alpine
solr:
image: datagov/catalog.data.gov.solr:latest
ports:
- "8983:8983"
volumes:
pg_data:
solr_data: