-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
166 lines (164 loc) · 4.6 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
version: '2.4'
services:
vault:
image: vault:1.13.3
restart: always
volumes:
- ./vault.json:/vault/config/vault.json
- ./data/vault-data:/vault/file
environment:
- VAULT_ADDR=${VAULT_ADDR}
- VAULT_API_ADDR=${VAULT_API_ADDR}
- VAULT_ADDRESS=${VAULT_ADDRESS}
cap_add:
- IPC_LOCK
command: vault server -config=/vault/config/vault.json
ports:
- 8200:8200
healthcheck:
test:
[
"CMD-SHELL",
"wget --spider http://127.0.0.1:8200/v1/sys/health || exit 1",
]
interval: 10s
timeout: 5s
retries: 3
identity:
image: ghcr.io/sunbird-rc/sunbird-rc-identity-service:v2.0.0-rc1
ports:
- "3332:3332"
depends_on:
vault:
condition: service_healthy
db:
condition: service_healthy
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/postgres
- VAULT_ADDR=${VAULT_ADDR}
- VAULT_TOKEN=${VAULT_TOKEN}
- VAULT_BASE_URL=${VAULT_BASE_URL}
- VAULT_ROOT_PATH=${VAULT_ROOT_PATH}
- VAULT_TIMEOUT=${VAULT_TIMEOUT}
- VAULT_PROXY=${VAULT_PROXY}
- SIGNING_ALGORITHM=${SIGNING_ALGORITHM}
- JWKS_URI=${JWKS_URI}
- ENABLE_AUTH=${ENABLE_AUTH}
- WEB_DID_BASE_URL=${WEB_DID_BASE_URL}
healthcheck:
test:
[ "CMD-SHELL", "curl -f http://localhost:3332/health || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
schema:
image: ghcr.io/sunbird-rc/sunbird-rc-credential-schema:v2.0.0-rc1
ports:
- "3333:3333"
depends_on:
db:
condition: service_healthy
identity:
condition: service_healthy
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/postgres
- IDENTITY_BASE_URL=${IDENTITY_BASE_URL}
- JWKS_URI=${JWKS_URI}
- ENABLE_AUTH=${ENABLE_AUTH}
healthcheck:
test:
[ "CMD-SHELL", "curl -f http://localhost:3333/health || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
credential:
image: ghcr.io/sunbird-rc/sunbird-rc-credentials-service:v2.0.0-rc1
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
identity:
condition: service_healthy
schema:
condition: service_healthy
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/postgres
- IDENTITY_BASE_URL=${IDENTITY_BASE_URL}
- SCHEMA_BASE_URL=${SCHEMA_BASE_URL}
- CREDENTIAL_SERVICE_BASE_URL=${CREDENTIAL_SERVICE_BASE_URL}
- JWKS_URI=${JWKS_URI}
- ENABLE_AUTH=${ENABLE_AUTH}
healthcheck:
test:
[ "CMD-SHELL", "curl -f http://localhost:3000/health || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
db:
image: postgres:12.1-alpine
ports:
- 5432:5432
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ./db-data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
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:5432/postgres
- connectionInfo_username=${POSTGRES_USER}
- connectionInfo_password=${POSTGRES_PASSWORD}
- encryption_enabled=false
- event_enabled=false
- search_providerName=${SEARCH_PROVIDER_NAME-dev.sunbirdrc.registry.service.NativeSearchService}
- idgen_enabled=false
- claims_enabled=false
- certificate_enabled=false
- signature_enabled=false
- filestorage_enabled=false
- registry_base_apis_enable=false
- logging.level.root=INFO
- async_enabled=false
- authentication_enabled=false
- notification_enabled=false
- webhook_enabled=false
- manager_type=DefinitionsManager
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
nginx:
image: mosip-nginx
build: .
ports:
- '80:80'
depends_on:
registry:
condition: service_healthy
identity:
condition: service_healthy
schema:
condition: service_healthy
credential:
condition: service_healthy
volumes:
vault-data: