-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (83 loc) · 2.22 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
version: "3.8"
services:
postgres:
image: postgres
ports:
- "5433:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password #pragma: allowlist secret
POSTGRES_DB: postgres
broker_app:
image: pactfoundation/pact-cli:latest-multi
ports:
- "9293:80"
- "9292:9292"
links:
- postgres
environment:
PACT_BROKER_DATABASE_USERNAME: postgres
PACT_BROKER_DATABASE_PASSWORD: password #pragma: allowlist secret
PACT_BROKER_DATABASE_HOST: postgres
PACT_BROKER_DATABASE_NAME: postgres
#Uncomment these two options for debugging purposes:
# PACT_BROKER_WEBHOOK_HOST_WHITELIST: circleci.com
# PACT_BROKER_LOG_LEVEL: DEBUG
mock-sirius:
build:
context: ./mock_sirius_backend
dockerfile: Dockerfile
environment:
- MOCKING_ENV
volumes:
- ./mock_sirius_backend/:/var/www/mock_sirius_backend/
ports:
- "5001:5001"
motoserver:
build:
context: ./mock_aws_services
dockerfile: Dockerfile
ports:
- "4584:4584"
- "4566:4566"
redis:
image: "redis:alpine"
ports:
- "0.0.0.0:6379:6379"
api_gateway:
build:
context: ./lambda_functions/v1
links:
- mock-sirius
- motoserver
depends_on:
- mock-sirius
- motoserver
volumes:
- ./lambda_functions/v1/:/var/www/lambda_functions/v1/
- ./mock_aws_services/create_secret.py:/var/www/mock_aws_services/create_secret.py
environment:
LOCAL_URL: host.docker.internal
ENVIRONMENT: local
AWS_ACCESS_KEY_ID: testing
AWS_SECRET_ACCESS_KEY: testing
AWS_SECURITY_TOKEN: testing
AWS_SESSION_TOKEN: testing
AWS_DEFAULT_REGION: eu-west-1
SIRIUS_BASE_URL: http://mock-sirius:5001
SIRIUS_API_VERSION: v1
SESSION_DATA: publicapi@opgtest.com
LOCALSTACK_HOST: motoserver
REQUEST_CACHING: enabled
REQUEST_CACHING_TTL: 48
REQUEST_CACHING_NAME: opg-data-lpa
REDIS_URL: redis://redis:6379
networks:
default:
aliases:
- lpa.local
unit-test-lpa-data:
image: unit-tests-request-handler:latest
build:
context: lambda_functions/v1
dockerfile: Dockerfile-tests