-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
175 lines (174 loc) · 5.67 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
version: "2.4"
services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
healthcheck:
test: ["CMD", "curl", "-f", "localhost:9200/_cluster/health"]
interval: 30s
timeout: 10s
retries: 4
db:
image: postgres
volumes:
- ./db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=registry
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
registry:
image: dockerhub/sunbird-rc-core:${RELEASE_VERSION}
volumes:
- ${PWD}/schemas:/home/sunbirdrc/config/public/_schemas
environment:
- connectionInfo_uri=jdbc:postgresql://db:5432/registry
- connectionInfo_username=postgres
- connectionInfo_password=postgres
- elastic_search_connection_url=es:9200
- search_providerName=dev.sunbirdrc.registry.service.ElasticSearchService
- sunbird_sso_realm=sunbird-rc
- sunbird_sso_url=https://sunbirdrc-sandbox.xiv.in/auth
- sunbird_sso_admin_client_id=admin-api
- sunbird_sso_client_id=registry-frontend
- sunbird_sso_admin_client_secret=${KEYCLOAK_SECRET}
- claims_url=http://claim-ms:8082
- sign_url=http://certificate-signer:8079/sign
- sign_health_check_url=http://certificate-signer:8079/health
- signature_enabled=true
- pdf_url=http://certificate-api:8078/api/v1/certificatePDF
- template_base_url=http://registry:8081/api/v1/templates/ #Looks for certificate templates for pdf copy of the signed certificate
- sunbird_keycloak_user_set_password=true
- filestorage_connection_url=http://file-storage:9000
- filestorage_access_key=admin
- filestorage_secret_key=12345678
- filestorage_bucket_key=issuance
- registry_base_apis_enable=false
- sunbird_keycloak_user_password=abcd@123
- logging.level.root=DEBUG
- enable_external_templates=true
- async_enabled=false
- authentication_enabled=true
- kafka_bootstrap_address=kafka:9092
- webhook_enabled=false
- webhook_url=http://localhost:5001/api/v1/callback
depends_on:
es:
condition: service_healthy
db:
condition: service_started
keycloak:
image: dockerhub/sunbird-rc-keycloak:latest
volumes:
- ${PWD}/imports:/opt/jboss/keycloak/imports
environment:
- KEYCLOAK_LOGO=https://svgshare.com/i/hCs.svg
- DB_VENDOR=postgres
- DB_ADDR=db
- DB_PORT=5432
- DB_DATABASE=postgres
- DB_USER=postgres
- DB_PASSWORD=postgres
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_IMPORT=/opt/jboss/keycloak/imports/realm-export.json
- PROXY_ADDRESS_FORWARDING=true
- KEYCLOAK_LOGO=https://svgshare.com/i/m5t.svg
- KEYCLOAK_PORTAL_TITLE=Sunbird RC account
- KEYCLOAK_PORTAL_SUB_TITLE=Create your Registry and Credentialing Platform
- SHOW_BANNER=false
- SHOW_FOOTER=false
healthcheck:
test:
["CMD-SHELL", "curl -f http://localhost:9990/ || exit 1"]
interval: 30s
timeout: 10s
retries: 5
depends_on:
db:
condition: service_started
claim-ms:
image: dockerhub/sunbird-rc-claim-ms:${RELEASE_VERSION}
environment:
- connectionInfo_uri=jdbc:postgresql://db:5432/registry
- connectionInfo_username=postgres
- connectionInfo_password=postgres
- sunbirdrc_url=http://registry:8081
depends_on:
db:
condition: service_started
registry:
condition: service_started
certificate-signer:
image: dockerhub/sunbird-rc-certificate-signer:${RELEASE_VERSION}
environment:
- PORT=8079
volumes:
- ./deps:/etc/signer
certificate-api:
image: dockerhub/sunbird-rc-certificate-api:${RELEASE_VERSION}
environment:
- PORT=8078
file-storage:
image: quay.io/minio/minio
volumes:
- ${HOME}/minio/data:/data
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=12345678
command: server --address 0.0.0.0:9000 --console-address 0.0.0.0:9001 /data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
zookeeper:
image: confluentinc/cp-zookeeper:latest
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: "2181"
ZOOKEEPER_TICK_TIME: "2000"
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
zookeeper:
condition: service_started
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: "1"
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_ADVERTISED_LISTENERS: "INTERNAL://kafka:9092,OUTSIDE://localhost:9094"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT"
KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: "1"
healthcheck:
test:
[ "CMD", "kafka-topics", "--list", "--zookeeper", "zookeeper:2181" ]
interval: 30s
timeout: 10s
retries: 4
public-key-service:
image: dockerhub/sunbird-rc-public-key-service:${RELEASE_VERSION}
environment:
- CONFIG_BASE_PATH=/etc/keys
healthcheck:
test: [ "CMD", "curl", "-f", "localhost:3300/api/v1/health" ]
interval: 30s
timeout: 10s
retries: 4
volumes:
- ./deps:/etc/keys
context-proxy-service:
image: dockerhub/sunbird-rc-context-proxy-service:${RELEASE_VERSION}
healthcheck:
test: [ "CMD", "curl", "-f", "localhost:4400/health" ]
interval: 30s
timeout: 10s
retries: 4
nginx:
image: dockerhub/sunbird-rc-nginx
ports:
- "82:80"