generated from DEFRA/ffc-template-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
44 lines (42 loc) · 1.99 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
services:
ffc-pay-dps:
build:
context: .
target: production
image: ffc-pay-dps
container_name: ffc-pay-dps
depends_on:
- ffc-pay-dps-postgres
- ffc-pay-batch-azurite
environment:
APPINSIGHTS_CLOUDROLE: ffc-pay-dps-local
APPINSIGHTS_CONNECTIONSTRING: ${APPINSIGHTS_CONNECTIONSTRING}
AZURE_STORAGE_USE_CONNECTION_STRING: "true"
AZURE_STORAGE_CREATE_CONTAINERS: "true"
POLLING_INTERVAL: ${POLLING_INTERVAL:-10000}
MESSAGE_QUEUE_HOST: ${MESSAGE_QUEUE_HOST}
MESSAGE_QUEUE_PASSWORD: ${MESSAGE_QUEUE_PASSWORD}
MESSAGE_QUEUE_USER: ${MESSAGE_QUEUE_USER}
EVENTS_TOPIC_ADDRESS: ${EVENTS_TOPIC_ADDRESS:-ffc-pay-events}${MESSAGE_QUEUE_SUFFIX}
FILESEND_TOPIC_ADDRESS: ${SEND_TOPIC_ADDRESS:-ffc-pay-file-send}${MESSAGE_QUEUE_SUFFIX}
POSTGRES_DB: ffc_pay_dps
POSTGRES_HOST: ${POSTGRES_HOST:-ffc-pay-dps-postgres}
POSTGRES_PASSWORD: ${POSTGRES_SCHEMA_PASSWORD:-ppp}
POSTGRES_PORT: 5432
POSTGRES_SCHEMA_NAME: ${POSTGRES_SCHEMA_NAME:-public}
POSTGRES_USERNAME: ${POSTGRES_SCHEMA_USERNAME:-postgres}
AZURE_STORAGE_ACCOUNT_NAME: ${AZURE_STORAGE_ACCOUNT_NAME:-devstoreaccount1}
AZURE_STORAGE_CONNECTION_STRING: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ffc-pay-batch-azurite:10000/devstoreaccount1;
CUSTOMER_TOPIC_ADDRESS: ${EVENTS_TOPIC_ADDRESS:-ffc-pay-customer}${MESSAGE_QUEUE_SUFFIX}
CUSTOMER_SUBSCRIPTION_ADDRESS: ${EVENTS_TOPIC_ADDRESS:-ffc-pay-dps}${MESSAGE_QUEUE_SUFFIX}
ffc-pay-dps-postgres:
image: postgres:11.4-alpine
environment:
POSTGRES_DB: ffc_pay_dps
POSTGRES_PASSWORD: ppp
POSTGRES_USERNAME: postgres
ffc-pay-batch-azurite:
image: mcr.microsoft.com/azure-storage/azurite:3.32.0
command: "azurite-blob --loose --blobHost 0.0.0.0"
labels:
com.docker.compose.pay.role: ffc-pay-batch-azurite