-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
85 lines (79 loc) · 2.29 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
version: '2.2'
services:
rd-professional-api:
build:
context: .
args:
- http_proxy
- https_proxy
- no_proxy
image: hmcts/rd-professional-api
container_name: rd-professional-api
environment:
- JAVA_OPTS=-Dhttps.proxyHost=proxyout.reform.hmcts.net -Dhttps.proxyPort=8080
- POSTGRES_USERNAME=dbrefdata
- POSTGRES_PASSWORD=dbrefdata
- POSTGRES_HOST=rd-professional-db
- POSTGRES_PORT=5432
# these environment variables are used by java-logging library
- JSON_CONSOLE_PRETTY_PRINT
- ROOT_APPENDER
- ROOT_LOGGING_LEVEL
- REFORM_SERVICE_TYPE
- REFORM_SERVICE_NAME
- REFORM_TEAM
- REFORM_ENVIRONMENT
- LOGBACK_DATE_FORMAT
- LOGBACK_REQUIRE_THREAD
- LOGBACK_REQUIRE_ALERT_LEVEL=false
- LOGBACK_REQUIRE_ERROR_CODE=false
- S2S_URL=http://service-auth-provider-api:8080
- PROFESSIONAL_API_S2S_SECRET=${PROFESSIONAL_API_S2S_SECRET}
ports:
- 8000:8000
- ${SERVER_PORT:-8090}:${SERVER_PORT:-8090}
depends_on:
- rd-professional-db
- service-auth-provider-api
rd-professional-db:
build:
context: database
image: hmcts/rd-professional-db
container_name: rd-professional-db
volumes:
- rd-professional-db-volume:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD="${POSTGRES_PASSWORD:-dbrefdata}"
ports:
- 5428:5432
service-auth-provider-api:
image: hmcts/service-auth-provider-app
container_name: service-auth-provider-api
healthcheck:
interval: 10s
timeout: 10s
retries: 10
ports:
- 8502:8080
environment:
JAVA_OPTS: -Xmx384m
SERVER_PORT: 8080
MICROSERVICEKEYS_RD_PROFESSIONAL_API: "${PROFESSIONAL_API_S2S_SECRET}"
TESTING_SUPPORT_ENABLED: "true"
service-token-provider:
image: hmcts/service-token-provider
container_name: service-token-provider
environment:
- S2S_URL=http://service-auth-provider-api:8080
- S2S_MICROSERVICE=rd_professional_api
- S2S_SECRET=${PROFESSIONAL_API_S2S_SECRET}
ports:
- 8089:${SERVER_PORT:-8090}
depends_on:
- service-auth-provider-api
networks:
default:
external:
name: rd-user-profile-api_default
volumes:
rd-professional-db-volume: