-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
119 lines (115 loc) · 3.27 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
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
version: '3'
services:
inbound:
image: local/mhs-inbound:${BUILD_TAG}
ports:
- "443"
- "80"
environment:
- MHS_LOG_LEVEL=NOTSET
- MHS_SECRET_PARTY_KEY
- MHS_SECRET_CLIENT_CERT
- MHS_SECRET_CLIENT_KEY
- MHS_SECRET_CA_CERTS
- MHS_INBOUND_QUEUE_BROKERS=amqp://rabbitmq:5672
- MHS_INBOUND_QUEUE_NAME=inbound
- MHS_SECRET_INBOUND_QUEUE_USERNAME=guest
- MHS_SECRET_INBOUND_QUEUE_PASSWORD=guest
- MHS_STATE_TABLE_NAME=mhs_state
- MHS_SYNC_ASYNC_STATE_TABLE_NAME=sync_async_state
- MHS_DB_ENDPOINT_URL=http://dynamodb:8000
- MHS_INBOUND_QUEUE_MESSAGE_TTL_IN_SECONDS=0
# boto3 requires some AWS creds to be provided, even
# when connecting to local DynamoDB
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- MHS_INBOUND_USE_SSL=True
- TCP_PORTS=443
- SERVICE_PORTS=443,80
- SUPPORTED_FILE_TYPES
outbound:
image: local/mhs-outbound:${BUILD_TAG}
ports:
- "80"
environment:
- MHS_LOG_LEVEL=NOTSET
- MHS_SECRET_PARTY_KEY
- MHS_SECRET_CLIENT_CERT
- MHS_SECRET_CLIENT_KEY
- MHS_SECRET_CA_CERTS
- MHS_STATE_TABLE_NAME=mhs_state
- MHS_DB_ENDPOINT_URL=http://dynamodb:8000
- MHS_SYNC_ASYNC_STATE_TABLE_NAME=sync_async_state
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- MHS_RESYNC_INTERVAL=1
- MAX_RESYNC_RETRIES=20
- MHS_SPINE_ROUTE_LOOKUP_URL=http://route
- MHS_SPINE_ORG_CODE=YES
- MHS_SPINE_REQUEST_MAX_SIZE=4999600 # 5 000 000 - 400
# Note that this endpoint URL is Opentest-specific
- MHS_FORWARD_RELIABLE_ENDPOINT_URL=https://192.168.128.11/reliablemessaging/forwardreliable
# This is for disabling hostname validation so OpenTest ip address will work
- MHS_OUTBOUND_VALIDATE_CERTIFICATE=${MHS_OUTBOUND_VALIDATE_CERTIFICATE:-False}
- SERVICE_PORTS=80
- MHS_OUTBOUND_ROUTING_LOOKUP_METHOD
- MHS_SDS_API_URL
- MHS_SDS_API_KEY
route:
image: local/mhs-route:${BUILD_TAG}
ports:
- "8080:80"
environment:
- MHS_LOG_LEVEL=NOTSET
- MHS_SDS_URL=ldap://192.168.128.11
- MHS_SDS_SEARCH_BASE=ou=services,o=nhs
- MHS_DISABLE_SDS_TLS=True
- MHS_SDS_REDIS_CACHE_HOST=redis
- MHS_SDS_REDIS_DISABLE_TLS=True
dynamodb:
image: nhsdev/nia-dynamodb-local:1.0.3
ports:
- "8000:8000"
mongodb:
image: mongo:5.0.16
ports:
- "27017:27017"
rabbitmq:
image: nhsdev/nia-rabbitmq-local:1.0.1
ports:
- "15672:15672"
- "5672:5672"
hostname: "localhost"
redis:
image: redis
ports:
- "6379:6379"
inbound-lb:
image: dockercloud/haproxy
links:
- inbound
ports:
- "443:443"
- "8079:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- MODE=tcp
- TIMEOUT=connect 0, client 0, server 0
outbound-lb:
image: dockercloud/haproxy
links:
- outbound
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TIMEOUT=connect 0, client 0, server 0
sds-api-mock:
build: ./docker/sds-api-mock
ports:
- "8081:8080"
command:
- -global-response-templating
- --verbose