This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yml
85 lines (76 loc) · 2.27 KB
/
docker-compose-test.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
version: "2.4"
services:
consumer-test:
extends:
file: docker-compose-base.yml
service: ckan-consumer-base
environment:
TENANCY_HEADER: x-oauth-realm
CONSUMER_NAME: 'CKAN-TEST'
EXPOSE_PORT: 9013
LOG_LEVEL: "DEBUG"
CONSUMER_CONFIG_PATH: "/code/tests/conf/consumer.json"
CONSUMER_KAFKA_CONFIG_PATH: "/code/tests/conf/kafka.json"
CONNECT_RETRY_WAIT: 1
STARTUP_CONNECTION_RETRY: 3
KAFKA_URL: kafka-test:29092
SECURITY.PROTOCOL: SASL_SSL
SASL.MECHANISM: PLAIN
SASL.USERNAME: root
SASL.PASSWORD: 09049a938686107c15ed6748010e2f1b
REDIS_DB: 2
REDIS_HOST: localhost
REDIS_PORT: 6380
REDIS_PASSWORD: redispassword
ckan:
image: ehealthafrica/ckan:2.8.0-rc
environment:
# Defaults work with linked containers, change to use own Postgres, SolR, Redis or Datapusher
- DATASTORE_READONLY_PASSWORD=datastore
- DS_RO_PASS=datastore
- CKAN_SITE_URL=http://ckan:5000
- CKAN_PORT=5000
- CKAN_MAX_UPLOAD_SIZE_MB=20000
- CKAN_SQLALCHEMY_URL=postgresql://ckan:ckan@ckanpg/ckan
- CKAN_DATASTORE_WRITE_URL=postgresql://ckan:ckan@ckanpg/datastore
- CKAN_DATASTORE_READ_URL=postgresql://datastore_ro:datastore@ckanpg/datastore
- CKAN_SOLR_URL=http://solr:8983/solr/ckan
- CKAN_REDIS_URL=redis://user:redispassword@redis:6379/2
- CKAN_DATAPUSHER_URL=http://datapusher:8800
- POSTGRES_PASSWORD=db_password
volumes:
- ./consumer/tests/ckan/ckan:/etc/ckan
depends_on:
- ckanpg
- solr
- redis
ports:
- 5000:5000
restart: on-failure
datapusher:
image: clementmouchet/datapusher
ports:
- 8800:8800
ckanpg:
build:
context: ./consumer/tests/ckan
dockerfile: postgresql/Dockerfile
args:
- DS_RO_PASS=datastore
- POSTGRES_PASSWORD=ckan
environment:
- DS_RO_PASS=datastore
- POSTGRES_PASSWORD=ckan
solr:
build:
context: ./consumer/tests/ckan
dockerfile: solr/Dockerfile
redis:
image: redis:alpine
command: >
redis-server
--requirepass redispassword
--notify-keyspace-events KEA
--appendonly yes
--auto-aof-rewrite-percentage 100
--auto-aof-rewrite-min-size 64mb