-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (74 loc) · 2.16 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
version: "2.4"
services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.1
volumes:
- ./esdata:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- ELASTIC_PASSWORD=
- xpack.security.enabled=false
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: [ "CMD", "curl", "-f", "localhost:9200/_cluster/health", "--header", "Authorization: Basic ZWxhc3RpYzpEa0llZFBQU0Ni" ]
interval: 30s
timeout: 10s
retries: 4
db:
image: postgres
volumes:
- ./db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_DB=registry
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
registry:
image: dockerhub/sunbird-rc-core:${RELEASE_VERSION}
volumes:
- ./config/schemas:/home/sunbirdrc/config/public/_schemas
environment:
- connectionInfo_uri=jdbc:postgresql://db:5432/registry
- connectionInfo_username=postgres
- connectionInfo_password=postgres
- signature_enabled=false
- registry_base_apis_enable=false
- logging.level.root=DEBUG
- enable_external_templates=true
- async_enabled=false
- authentication_enabled=false
- elastic_search_connection_url=es:9200
- elastic_search_scheme=http
- elastic_search_auth_enabled=false
- elastic_search_username=
- elastic_search_password=
- search_providerName=dev.sunbirdrc.registry.service.ElasticSearchService
ports:
- "8081:8081"
depends_on:
db:
condition: service_healthy
bulk_issuance:
image: ghcr.io/sunbird-rc/sunbird-rc-bulk-issuance
ports:
- '5665:5665'
environment:
REGISTRY_BASE_URL: http://registry:8081/
DATABASE_HOST: db
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: 4