-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
123 lines (122 loc) · 3.62 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
version: "3.9"
services:
db:
image: postgres
volumes:
- ./${DB_DIR}:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:latest
ports:
- "6379:6379"
registry:
image: ghcr.io/sunbird-rc/sunbird-rc-core:${RELEASE_VERSION}
volumes:
- ./${SCHEMA_DIR}:/home/sunbirdrc/config/public/_schemas
environment:
- connectionInfo_uri=jdbc:postgresql://${DB_URL}/${DB_NAME}
- connectionInfo_username=${DB_USERNAME}
- connectionInfo_password=${DB_PASSWORD}
- authentication_enabled=false
- claims_enabled=false
- opa_enabled=false
- search_limit=2000
- search_providerName=${SEARCH_PROVIDER_NAME}
- signature_enabled=true
- sign_url=http://certificate-signer:8079/sign
- verify_url=http://certificate-signer:8079/verify
- sign_health_check_url=http://certificate-signer:8079/health
- pdf_url=http://certificate-api:8078/api/v1/certificatePDF
- certificate_health_check_url=http://certificate-api:8078/health
- template_base_url=http://registry:8081/api/v1/templates/ #Looks for certificate templates for pdf copy of the signed certificate
- registry_base_apis_enable=false
- logging.level.root=INFO
- certificate_enabled=true
- encryption_enabled=false
- enable_external_templates=true
- async_enabled=${ASYNC_ENABLED}
- kafka_bootstrap_address=${KAFKA_BOOTSTRAP_URL}
- webhook_enabled=false
- webhook_url=http://localhost:5001/api/v1/callback
- manager_type=${MANAGER_TYPE}
- swagger_enabled=true
- swagger_title=Agri Stack
ports:
- "8081:8081"
depends_on:
db:
condition: service_healthy
healthcheck:
test: [ "CMD-SHELL", "wget -nv -t1 --spider http://localhost:8081/health || exit 1" ]
interval: 30s
timeout: 10s
retries: 10
certificate-signer:
image: ghcr.io/sunbird-rc/sunbird-rc-certificate-signer:${RELEASE_VERSION}
environment:
- PORT=8079
- TIME_ZONE=${TIME_ZONE-Asia/Kolkata}
ports:
- "8079:8079"
volumes:
- ./imports/keys:/etc/signer
healthcheck:
test:
[ "CMD-SHELL", "curl -f http://localhost:8079/health || exit 1" ]
interval: 30s
timeout: 10s
retries: 10
certificate-api:
image: ghcr.io/sunbird-rc/sunbird-rc-certificate-api:${RELEASE_VERSION}
environment:
- PORT=8078
- QR_TYPE=W3C-VC
ports:
- "8078:8078"
healthcheck:
test:
[ "CMD-SHELL", "wget -nv -t1 --spider http://localhost:8078/health || exit 1" ]
interval: 30s
timeout: 10s
retries: 10
public-key-service:
image: ghcr.io/sunbird-rc/sunbird-rc-public-key-service
environment:
- CONFIG_BASE_PATH=/etc/keys
ports:
- '3300:3300'
healthcheck:
test:
['CMD', 'curl', '-f', 'localhost:3300/public-key-service/api/v1/health']
interval: 30s
timeout: 10s
retries: 10
volumes:
- ./imports/keys:/etc/keys
context-proxy-service:
image: ghcr.io/sunbird-rc/sunbird-rc-context-proxy-service
ports:
- '4400:4400'
healthcheck:
test: ['CMD', 'curl', '-f', 'localhost:4400/health']
interval: 30s
timeout: 10s
retries: 10
nginx:
image: nginx:latest
ports:
- "80:80"
env_file:
- .env
volumes:
- ./imports/nginx/:/etc/nginx/conf.d/:ro