generated from DEFRA/ffc-template-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
64 lines (61 loc) · 2.75 KB
/
docker-compose.yaml
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
services:
aphw-ddi-api:
build:
context: .
target: production
image: aphw-ddi-api
container_name: aphw-ddi-api
depends_on:
- aphw-ddi-api-postgres
- aphw-ddi-api-azurite
environment:
APPINSIGHTS_CLOUDROLE: aphw-ddi-api-local
APPLICATIONINSIGHTS_CONNECTION_STRING: ${APPLICATIONINSIGHTS_CONNECTION_STRING}
MESSAGE_QUEUE_HOST: ${MESSAGE_QUEUE_HOST}
MESSAGE_QUEUE_PASSWORD: ${MESSAGE_QUEUE_PASSWORD}
MESSAGE_QUEUE_USER: ${MESSAGE_QUEUE_USER}
EVENTS_TOPIC_ADDRESS: ${EVENTS_TOPIC_ADDRESS:-aphw-ddi-events}${MESSAGE_QUEUE_SUFFIX}
NOTIFICATIONS_TOPIC_ADDRESS: ${NOTIFICATIONS_TOPIC_ADDRESS:-aphw-ddi-notifications}${MESSAGE_QUEUE_SUFFIX}
CERTIFICATE_REQUEST_QUEUE: ${CERTIFICATE_REQUEST_QUEUE:-aphw-ddi-certificate-request}${MESSAGE_QUEUE_SUFFIX}
AZURE_STORAGE_ACCOUNT_NAME: ${AZURE_STORAGE_ACCOUNT_NAME:-devstoreaccount1}
AZURE_STORAGE_USE_CONNECTION_STRING: "true"
AZURE_STORAGE_CREATE_CONTAINERS: "true"
AZURE_STORAGE_CONNECTION_STRING: "UseDevelopmentStorage=true"
ROBOT_SHEET_NAME: ${ROBOT_SHEET_NAME:-Passed}
OS_PLACES_API_KEY: ${OS_PLACES_API_KEY:-test}
OS_PLACES_API_BASE_URL: ${OS_PLACES_API_BASE_URL:-test}
POLICE_API_BASE_URL: ${POLICE_API_BASE_URL:-test}
PORTAL_PUBLIC_KEY: ${PORTAL_PUBLIC_KEY}
ENFORCEMENT_PUBLIC_KEY: ${ENFORCEMENT_PUBLIC_KEY}
API_PRIVATE_KEY: ${API_PRIVATE_KEY}
API_PUBLIC_KEY: ${API_PUBLIC_KEY}
AUTH_SERVER_URL: ${AUTH_SERVER_URL:-https://oidc.integration.account.gov.uk}
POSTGRES_DB: aphw-ddi
POSTGRES_HOST: ${POSTGRES_HOST:-aphw-ddi-api-postgres}
POSTGRES_PORT: 5432
POSTGRES_SCHEMA_NAME: ${POSTGRES_SCHEMA_NAME:-public}
POSTGRES_USERNAME: ${POSTGRES_SCHEMA_USERNAME:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_SCHEMA_PASSWORD:-ppp}
OVERNIGHT_JOB_CRONTAB: ${OVERNIGHT_JOB_CRONTAB:-5 4 * * *}
OVERNIGHT_EXPORT_BATCH_SIZE: ${OVERNIGHT_EXPORT_BATCH_SIZE:-2000}
PARANOID_RETENTION_PERIOD: ${PARANOID_RETENTION_PERIOD:-90}
USER_FEEDBACK_EMAIL_ADDRESS: ${USER_FEEDBACK_EMAIL_ADDRESS}
REPORT_SOMETHING_EMAIL_ADDRESS: ${REPORT_SOMETHING_EMAIL_ADDRESS}
ENFORCEMENT_URL: ${ENFORCEMENT_URL}
REDIS_HOSTNAME: ${REDIS_HOSTNAME:-dummy}
REDIS_PORT: ${REDIS_PORT:-6379}
aphw-ddi-api-postgres:
image: postgres:11.22-alpine
environment:
POSTGRES_DB: aphw-ddi
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: ppp
volumes:
- postgres_data:/var/lib/postgres/data
aphw-ddi-api-azurite:
image: mcr.microsoft.com/azure-storage/azurite:3.23.0
command: "azurite-blob --skipApiVersionCheck --loose --blobHost 0.0.0.0"
labels:
com.docker.compose.pay.role: aphw-ddi-api-azurite
volumes:
postgres_data: