forked from CodeForAfrica/openAFRICA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·53 lines (45 loc) · 1005 Bytes
/
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
version: "3.7"
# docker-compose build && docker-compose up
services:
web:
build: .
depends_on:
- db
- solr
- redis
ports:
- "5000:5000"
env_file:
- .env
volumes:
- ./ckan.ini:/ckan.ini
- ckan-filestore:/var/lib/ckan/default
datapusher:
build: contrib/ckan-datapusher
depends_on:
- web
db:
image: postgres:9.6
ports:
- "54321:5432"
environment:
- POSTGRES_USER=ckan_default
- POSTGRES_PASSWORD=pass
- PGUSER=ckan_default
- PGPASSWORD=pass
- POSTGRES_ADD_DATABASES=datastore_default:datastore_default
volumes:
- postgres-data:/var/lib/postgresql/data
- ./contrib/postgres:/docker-entrypoint-initdb.d
solr:
image: codeforafrica/ckan-solr:2.7.6
ports:
- "8983:8983"
volumes:
- solr-data:/opt/solr/server/solr/ckan
redis:
image: redis:latest
volumes:
postgres-data: {}
solr-data: {}
ckan-filestore: {}