-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (25 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
26 lines (25 loc) · 1.17 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
services:
localstack:
container_name: 'localstack'
image: 'localstack/localstack:4.10.0'
ports:
- '127.0.0.1:4510-4559:4510-4559' # external service port range
- '127.0.0.1:4566:4566' # LocalStack Edge Proxy
security_opt:
- 'label=disable' # in Podman's configuration disables SELinux labeling enforcement for the container, which allows the container to access host resources without SELinux restrictions.
environment:
- 'LOCALSTACK_HOSTNAME=localhost.localstack.cloud' # set this env var to expose localstack to other containers
- 'AWS_ACCESS_KEY_ID=key'
- 'AWS_SECRET_ACCESS_KEY=secret'
- 'AWS_DEFAULT_REGION=us-east-1'
- 'SERVICES=apigateway,cloudformation,cloudwatch,dynamodb,ec2,iam,kinesis,lambda,logs,s3,secretsmanager,ses,sns,sqs,ssm,sts,events'
# ---
- 'DEBUG=${DEBUG-}'
volumes:
- '$PWD/tmp/localstack:/var/lib/localstack'
- '$PWD/build/lambda/function:/shared'
- '/var/run/docker.sock:/var/run/docker.sock'
networks:
default:
aliases:
- 'localhost.localstack.cloud' # set this network aliases to expose localstack to other containers