forked from HHS/ckanext-datajson
-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yml
49 lines (49 loc) · 1.47 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
---
version: "3.7"
services:
app:
image: datagov/ckanext-datajson:${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_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/1
CKAN_DATAPUSHER_URL: http://localhost:8080/ # datapusher is not really enabled
CKAN__PLUGINS: datajson harvest datajson_validator datajson_harvest
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
db:
image: ckan/ckan-postgres-dev:${SERVICES_VERSION}
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"
redis:
image: redis
solr:
image: datagov/catalog.data.gov.solr:latest
ports:
- "8983:8983"