generated from LBHackney-IT/lbh-base-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (62 loc) · 1.84 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
version: "3.2"
services:
person-api:
image: person-api
build:
context: .
dockerfile: PersonApi/Dockerfile
args:
- LBHPACKAGESTOKEN=${LBHPACKAGESTOKEN}
- PactBrokerUserPassword=${PactBrokerUserPassword}
ports:
- 3000:3000
environment:
- DynamoDb_LocalMode=true
- DynamoDb_LocalServiceUrl=http://dynamodb-database:8000
- Localstack_SnsServiceUrl=http://localstack:4566
- AWS_REGION=eu-west-2
- AWS_ACCESS_KEY_ID=local
- AWS_SECRET_ACCESS_KEY=local
links:
- dynamodb-database
- localstack
person-api-test:
image: person-api-test
build:
context: .
dockerfile: PersonApi.Tests/Dockerfile
args:
- LBHPACKAGESTOKEN=${LBHPACKAGESTOKEN}
- PactBrokerUserPassword=${PactBrokerUserPassword}
- SONAR_TOKEN=${SONAR_TOKEN}
environment:
- DynamoDb_LocalMode=true
- DynamoDb_LocalServiceUrl=http://dynamodb-database:8000
- Localstack_SnsServiceUrl=http://localstack:4566
- PactBrokerProviderName=Person API V1
- PactBrokerPath=https://contract-testing-development.hackney.gov.uk/
- PactBrokerUser=pact-broker-user
- AWS_REGION=eu-west-2
- AWS_ACCESS_KEY_ID=local
- AWS_SECRET_ACCESS_KEY=local
links:
- dynamodb-database
- localstack
dynamodb-database:
image: amazon/dynamodb-local
ports:
- 8000:8000
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack:0.14.1
hostname: awslocal
ports:
- "4566:4566"
environment:
- SERVICES=sns,sqs
- DEBUG=1
- DOCKER_HOST=unix:///var/run/docker.sock
- HOST_TMP_FOLDER=/tmp/localstack
volumes:
- "./.localstack:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"