-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
62 lines (61 loc) · 1.54 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
version: "3.8"
services:
localstack:
profiles: ["localstack"]
container_name: aws
image: localstack/localstack
environment:
- HOSTNAME_EXTERNAL=awsnet
- SERVICES=sts,sns,sqs,lambda,events,ec2,s3,secretsmanager,stepfunctions,ssm,iam,batch,cloudwatch
- DEBUG=1
- DEFAULT_REGION=us-east-1
- AWS_DEFAULT_REGION=us-east-1
- EAGER_SERVICE_LOADING=1
- LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY}
- SYNCHRONOUS_SNS_EVENTS=1
- SYNCHRONOUS_SQS_EVENTS=1
- LAMBDA_DOCKER_NETWORK=awsnet
- BATCH_DOCKER_FLAGS=--network awsnet
ports:
- "9000:4566"
- "8083:8083"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
awsnet:
aliases:
- awsnet
motoserver:
profiles: ["moto"]
container_name: motoserver
image: motoserver/moto:3.0.4
environment:
- MOTO_DOCKER_NETWORK_NAME=awsnet
- MOTO_DOCKER_NETWORK_MODE=overlay
ports:
- "9000:5000"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
awsnet:
aliases:
- awsnet
stepfunctions_local:
profiles: ["moto"]
container_name: stepfunctions_local
image: amazon/aws-stepfunctions-local
environment:
- BATCH_ENDPOINT=http://awsnet:5000
- LAMBDA_ENDPOINT=http://awsnet:5000
- AWS_ACCOUNT_ID=123456789012
ports:
- "8083:8083"
networks:
awsnet:
aliases:
- sfn.awsnet
networks:
awsnet:
name: awsnet
driver: overlay
attachable: true