generated from LBHackney-IT/lbh-base-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (60 loc) · 1.85 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
version: "3.2"
services:
tenure-information-api:
image: tenure-information-api
build:
context: .
dockerfile: TenureInformationApi/Dockerfile
args:
- LBHPACKAGESTOKEN=${LBHPACKAGESTOKEN}
ports:
- 3000:3000
environment:
- DynamoDb_LocalMode=true
- Sns_LocalMode=true
- DynamoDb_LocalServiceUrl=http://dynamodb-database:8000
- Localstack_SnsServiceUrl=http://localstack-tenure-information-api:4566
- AWS_REGION=eu-west-2
- AWS_ACCESS_KEY_ID=local
- AWS_SECRET_ACCESS_KEY=local
- EDIT_CHARGES_ALLOWED_GROUPS=e2e-testing-charges
links:
- dynamodb-database
- localstack-tenure-information-api
tenure-information-api-test:
image: tenure-information-api-test
build:
context: .
dockerfile: TenureInformationApi.Tests/Dockerfile
args:
- LBHPACKAGESTOKEN=${LBHPACKAGESTOKEN}
- SONAR_TOKEN=${SONAR_TOKEN}
environment:
- DynamoDb_LocalMode=true
- Sns_LocalMode=true
- DynamoDb_LocalServiceUrl=http://dynamodb-database:8000
- Localstack_SnsServiceUrl=http://localstack-tenure-information-api:4566
- AWS_REGION=eu-west-2
- AWS_ACCESS_KEY_ID=local
- AWS_SECRET_ACCESS_KEY=local
- EDIT_CHARGES_ALLOWED_GROUPS=e2e-testing-charges
links:
- dynamodb-database
- localstack-tenure-information-api
dynamodb-database:
image: amazon/dynamodb-local
ports:
- 8000:8000
localstack-tenure-information-api:
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"