-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (34 loc) · 1 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
version: '2.4'
services:
localstack:
image: localstack/localstack:0.11.2
ports:
- "4575:4575" # SNS
- "4576:4576" # SQS
environment:
- "SERVICES=${LOCALSTACK_SERVICES:-sns,sqs}"
- "DEFAULT_REGION=${AWS_REGION:-us-east-1}"
- "HOSTNAME=${LOCALSTACK_HOSTNAME:-localhost}"
- "HOSTNAME_EXTERNAL=${LOCALSTACK_HOSTNAME_EXTERNAL:-localhost}"
volumes:
- /opt/localstack_templates:/opt/bootstrap/templates
micro1:
image: micro1:latest
environment:
- "server.port=8082"
- "AWS_ACCESS_KEY_ID=dummy"
- "AWS_SECRET_ACCESS_KEY=dummy"
- "sns.endpoint=http://localstack:4575"
- "micro1.endpoint=http://micro1:8082"
ports:
- "8082:8082"
micro2:
image: micro2:latest
environment:
- "server.port=8084"
- "AWS_ACCESS_KEY_ID=dummy"
- "AWS_SECRET_ACCESS_KEY=dummy"
- "sns.endpoint=http://localstack:4575"
- "micro2.endpoint=http://micro2:8084"
ports:
- "8084:8084"