-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.lambda.yml
More file actions
52 lines (48 loc) · 1.34 KB
/
docker-compose.lambda.yml
File metadata and controls
52 lines (48 loc) · 1.34 KB
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
include:
- docker-compose.moto.yml
services:
lambda-api:
image: public.ecr.aws/lambda/python:3.13
container_name: lambda-api
ports:
- "4567:8080"
platform: linux/amd64
volumes:
- ../dist/lambda.zip:/tmp/lambda.zip:ro
environment:
- AWS_ACCESS_KEY_ID=dummy_key
- AWS_SECRET_ACCESS_KEY=dummy_secret
- AWS_DEFAULT_REGION=eu-west-1
- PYTHONPATH=/var/task
- AWS_ENDPOINT_URL=http://moto-server:5000
- DYNAMODB_ENDPOINT=http://moto-server:5000
- S3_ENDPOINT=http://moto-server:5000
- SECRET_MANAGER_ENDPOINT=http://moto-server:5000
- FIREHOSE_ENDPOINT=http://moto-server:5000
- LOG_LEVEL=INFO
entrypoint: /bin/sh
command:
- "-c"
- |
mkdir -p /var/task &&
python3 -m zipfile -e /tmp/lambda.zip /var/task &&
exec /usr/local/bin/aws-lambda-rie python3 -m awslambdaric eligibility_signposting_api.app.lambda_handler
networks:
- test-network
depends_on:
moto-server:
condition: service_healthy
api-gateway-mock:
#used for api gateway simulation
image: openresty/openresty:alpine
ports:
- "9123:9123"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- lambda-api
networks:
- test-network
networks:
test-network:
driver: bridge