-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
92 lines (91 loc) · 2.48 KB
/
docker-compose.yaml
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
version: '2.4'
services:
es:
container_name: es
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
environment:
- discovery.type=single-node
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
ports:
- '9200:9200'
- '9300:9300'
healthcheck:
test: ['CMD', 'curl', '-f', 'localhost:9200/_cluster/health']
interval: 30s
timeout: 10s
retries: 4
db:
container_name: db
image: postgres
ports:
- '5432:5432'
environment:
- POSTGRES_DB=registry
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
rg:
container_name: rg
image: dockerhub/sunbird-rc-core
volumes:
- ./schemas:/home/opensaber/config/public/_schemas
environment:
- connectionInfo_uri=jdbc:postgresql://db:5432/registry
- connectionInfo_username=postgres
- connectionInfo_password=postgres
- elastic_search_connection_url=es:9200
- search_provider=io.opensaber.registry.service.ElasticSearchService
- sunbird_sso_realm=sunbird-rc
- sunbird_sso_url=http://kc:8080/auth
- sunbird_sso_admin_client_id=admin-api
- sunbird_sso_client_id=registry-frontend
- sunbird_sso_admin_client_secret=INSERT_SECRET_HERE
- claims_url=http://cs:8082
- internal_entities=Student,Teacher
ports:
- '8081:8081'
depends_on:
es:
condition: service_healthy
db:
condition: service_started
kc:
container_name: kc
image: dockerhub/ndear-keycloak
volumes:
- ./imports:/opt/jboss/keycloak/imports
environment:
- DB_VENDOR=postgres
- DB_ADDR=db
- DB_PORT=5432
- DB_DATABASE=registry
- DB_USER=postgres
- DB_PASSWORD=postgres
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_IMPORT=/opt/jboss/keycloak/imports/realm-export.json
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:9990/ || exit 1']
interval: 30s
timeout: 10s
retries: 5
ports:
- '8080:8080'
- '9990:9990'
depends_on:
db:
condition: service_started
cs:
container_name: cs
image: dockerhub/open-saber-claim-ms
environment:
- connectionInfo_uri=jdbc:postgresql://db:5432/registry
- connectionInfo_username=postgres
- connectionInfo_password=postgres
- opensaber_url=http://rg:8081
ports:
- '8082:8082'
depends_on:
db:
condition: service_started
rg:
condition: service_started