generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-local.yml
142 lines (133 loc) · 3.88 KB
/
docker-compose-local.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
version: '2.1'
services:
darts-api:
container_name: darts-api
depends_on:
- darts-db
- darts-redis
environment:
- DARTS_API_DB_HOST=darts-db
- DARTS_API_DB_NAME=darts
- DARTS_API_DB_USERNAME=darts
- DARTS_API_DB_PASSWORD=darts
- DARTS_API_DB_SCHEMA=darts
- SPRING_PROFILES_ACTIVE=local
- AAD_B2C_CLIENT_ID
- AAD_B2C_CLIENT_SECRET
- AAD_B2C_TENANT_ID
- GOVUK_NOTIFY_API_KEY
- AAD_B2C_ROPC_CLIENT_ID
- AAD_B2C_ROPC_CLIENT_SECRET
- AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;
- AAD_TENANT_ID
- AAD_CLIENT_ID
- AAD_CLIENT_SECRET
- AAD_TENANT_ID_JUSTICE
- AAD_CLIENT_ID_JUSTICE
- AAD_CLIENT_SECRET_JUSTICE
- XHIBIT_USER_NAME
- XHIBIT_PASSWORD
- CPP_USER_NAME
- CPP_PASSWORD
- DARPC_USER_NAME
- DARPC_PASSWORD
- DAR_MIDTIER_USER_NAME
- DAR_MIDTIER_PASSWORD
- AZURE_AD_FUNCTIONAL_TEST_USERNAME
- AZURE_AD_FUNCTIONAL_TEST_PASSWORD
- TESTING_SUPPORT_ENDPOINTS_ENABLED=true
- SYSTEM_USER_EMAIL
- REDIS_CONNECTION_STRING=redis://darts-redis:6379
- REDIS_SSL_ENABLED=false
- DARTS_GATEWAY_URL=http://darts-gateway:8070
- AZURE_AD_FUNCTIONAL_TEST_GLOBAL_USERNAME
- AZURE_AD_FUNCTIONAL_TEST_GLOBAL_PASSWORD
- ARM_SAS_ENDPOINT
- DETS_SAS_URL_ENDPOINT
- ARM_USERNAME
- ARM_PASSWORD
- ARM_SERVICE_PROFILE
- ARM_URL=http://darts-stub-services:4551
- ACTIVE_DIRECTORY_B2C_BASE_URI=https://hmctsstgextid.b2clogin.com
- ACTIVE_DIRECTORY_B2C_AUTH_URI=https://hmctsstgextid.b2clogin.com/hmctsstgextid.onmicrosoft.com
- MAX_FILE_UPLOAD_SIZE_MEGABYTES=350
- MAX_FILE_UPLOAD_REQUEST_SIZE_MEGABYTES=360
- DARTS_INBOUND_STORAGE_SAS_URL
- DARTS_UNSTRUCTURED_STORAGE_SAS_URL
- ARM_SERVICE_ENTITLEMENT
- ARM_STORAGE_ACCOUNT_NAME
build:
context: .
dockerfile: Dockerfile
image: darts-api:latest
ports:
- "4550:4550"
networks:
- darts-network
darts-gateway:
image: sdshmctspublic.azurecr.io/darts/gateway:latest
ports:
- "8070:8070"
networks:
- darts-network
darts-stub-services:
image: sdshmctspublic.azurecr.io/darts/stub-services:latest
ports:
- "4551:4551"
networks:
- darts-network
darts-db:
container_name: darts-db
image: postgres:16-alpine # Maintain this such that we track the version deployed in higher environments
restart: always
environment:
- POSTGRES_USER=darts
- POSTGRES_PASSWORD=darts
- POSTGRES_DB=darts
command: [ "postgres", "-c", "log_statement=all" ]
ports:
- "5432:5432"
volumes:
- darts-db:/var/lib/postgresql/data
networks:
- darts-network
darts-redis:
container_name: darts-redis
image: redis:7.4.2-alpine
restart: always
ports:
- "6379:6379"
volumes:
- darts-cache:/var/lib/redis/data
networks:
- darts-network
darts-portal:
image: sdshmctspublic.azurecr.io/darts/portal:latest
depends_on:
- darts-redis
ports:
- "3000:3000"
environment:
ALLOW_CONFIG_MUTATIONS: true
DARTS_PORTAL_URL: http://localhost:3000
DARTS_API_URL: http://darts-api:4550
DARTS_SESSION_REDIS_CONNECTION_STRING: redis://darts-redis:6379
networks:
- darts-network
darts-blob-storage:
container_name: darts-blob-storage
image: mcr.microsoft.com/azure-storage/azurite
ports:
- "10000:10000"
- "10001:10001"
- "10002:10002"
networks:
- darts-network
volumes:
darts-db:
driver: local
darts-cache:
driver: local
networks:
darts-network:
driver: bridge