-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-public.yml
51 lines (49 loc) · 1.62 KB
/
docker-compose-public.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
version: "3.3"
services:
router:
image: public.ecr.aws/pwrdrvr/lambda-dispatch-router-dev:pr-85
# platform: linux/amd64
ports:
- 5001:5001
- 5003:5003
- 5004:5004
networks:
- mynetwork
environment:
# Limit spins to save 75% CPU
# https://github.com/dotnet/runtime/issues/72153#issuecomment-1216363757
- DOTNET_ThreadPool_UnfairSemaphoreSpinLimit=6
- AWS_LAMBDA_SERVICE_URL=http://host.docker.internal:5051
- AWS_REGION=us-east-2
- AWS_ACCESS_KEY_ID=test-access-key-id
- AWS_SECRET_ACCESS_KEY=test-secret-access-key
- AWS_SESSION_TOKEN=test-session-token
- ROUTER_CALLBACK_HOST=router
- LAMBDA_DISPATCH_ChannelCount=10
- LAMBDA_DISPATCH_AllowInsecureControlChannel=true
- LAMBDA_DISPATCH_PreferredControlChannelScheme=http
- LAMBDA_DISPATCH_MaxConcurrentCount=10
- LAMBDA_DISPATCH_FunctionName=dogs
lambdademoapp:
depends_on:
- router
image: public.ecr.aws/pwrdrvr/lambda-dispatch-demo-app-dev:pr-85
# platform: linux/amd64
networks:
- mynetwork
environment:
- AWS_LAMBDA_FUNCTION_VERSION=\$LATEST
- AWS_LAMBDA_FUNCTION_MEMORY_SIZE=512
- AWS_LAMBDA_FUNCTION_NAME=dogs
- AWS_LAMBDA_RUNTIME_API=host.docker.internal:5051
- AWS_REGION=us-east-2
- AWS_ACCESS_KEY_ID=test-access-key-id
- AWS_SECRET_ACCESS_KEY=test-secret-access-key
- AWS_SESSION_TOKEN=test-session-token
# Pass through AWS_PROFILE if we have one (for the demo-app)
- AWS_PROFILE
volumes:
- ~/.aws:/root/.aws
entrypoint: ["./startup.sh"]
networks:
mynetwork: