-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (90 loc) · 3.11 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
services:
web:
depends_on:
- redis
- db
- solr
- minio
build: .
ports:
- "5000:5000"
environment:
- CKAN_REDIS_URL=redis://redis:6379/0
- CKAN_SITE_URL=http://localhost:5000/
- CKAN_SOLR_URL=http://solr:8983/solr/ckan
- CKAN_SQLALCHEMY_URL=postgres://ckan:password@db/ckan
- CKAN___BEAKER__SESSION__SECRET=supersecret
- CKAN___CKANEXT__S3FILESTORE__AWS_ACCESS_KEY_ID=minio-access-key
- CKAN___CKANEXT__S3FILESTORE__AWS_BUCKET_NAME=openup-ckan
- CKAN___CKANEXT__S3FILESTORE__AWS_SECRET_ACCESS_KEY=minio-secret-key
- CKAN___CKANEXT__S3FILESTORE__HOST_NAME=http://minio:9000
- CKAN___CKANEXT__S3FILESTORE__REGION_NAME=eu-west-1
- CKAN___CKANEXT__S3FILESTORE__SIGNATURE_VERSION=s3v4
volumes:
- ./bin/wait-for-deps.sh:/app/bin/wait-for-deps.sh
- ./bin/connect-to-postgres.py:/app/bin/connect-to-postgres.py
- ./bin/connect-to-solr.py:/app/bin/connect-to-solr.py
- ./ckan.ini:/app/ckan.ini
- ./who.ini:/app/who.ini
- ckan-filestore:/var/lib/ckan
command: ["/app/bin/wait-for-deps.sh", "ckan", "run"]
worker:
depends_on:
- redis
- db
- solr
- minio
build: .
environment:
- CKAN_REDIS_URL=redis://redis:6379/0
- CKAN_SITE_URL=http://localhost:5000/
- CKAN_SOLR_URL=http://solr:8983/solr/ckan
- CKAN_SQLALCHEMY_URL=postgres://ckan:password@db/ckan
- CKAN___BEAKER__SESSION__SECRET=supersecret
- CKAN___CKANEXT__S3FILESTORE__AWS_ACCESS_KEY_ID=minio-access-key
- CKAN___CKANEXT__S3FILESTORE__AWS_BUCKET_NAME=openup-ckan
- CKAN___CKANEXT__S3FILESTORE__AWS_SECRET_ACCESS_KEY=minio-secret-key
- CKAN___CKANEXT__S3FILESTORE__HOST_NAME=http://minio:9000
- CKAN___CKANEXT__S3FILESTORE__REGION_NAME=eu-west-1
- CKAN___CKANEXT__S3FILESTORE__SIGNATURE_VERSION=s3v4
volumes:
- ./bin/wait-for-deps.sh:/app/bin/wait-for-deps.sh
- ./bin/connect-to-postgres.py:/app/bin/connect-to-postgres.py
- ./bin/connect-to-solr.py:/app/bin/connect-to-solr.py
- ./ckan.ini:/app/ckan.ini
- ./who.ini:/app/who.ini
- ckan-filestore:/var/lib/ckan/default/storage
command: ["/app/bin/wait-for-deps.sh", "paster", "--plugin=ckan", "jobs", "worker", "--config", "ckan.ini"]
redis:
image: redis:latest
db:
image: postgres:12.17
environment:
- POSTGRES_USER=ckan
- POSTGRES_PASSWORD=password
- POSTGRES_DB=ckan
volumes:
- db-data:/var/lib/postgresql/data
solr:
build: https://github.com/OpenUpSA/openup-ckan-solr-dokku.git
image: openup-ckan-solr
ports:
- "8983:8983"
volumes:
- solr-data:/opt/solr/server/solr/budgetportal/data
minio:
image: "minio/minio:RELEASE.2019-10-12T01-39-57Z"
volumes:
- minio-data:/data
ports:
- "9000:9000"
environment:
- MINIO_ACCESS_KEY=minio-access-key
- MINIO_SECRET_KEY=minio-secret-key
- MINIO_DOMAIN=minio
command: minio --compat server data
volumes:
ckan-filestore:
db-data:
solr-data:
minio-data: