forked from localstack/serverless-localstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 1.04 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
version: '2'
services:
dev-env:
build:
context: .
working_dir: /app
volumes:
- .:/app
- ~/.aws/:/root/.aws
- ~/.gitconfig:/root/.gitconfig
- ~/.gitconfig.local:/root/.gitconfig.local
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_PROFILE
- AWS_SESSION_TOKEN
- AWS_SECURITY_TOKEN
- SNYK_TOKEN
entrypoint:
- /bin/bash
localstack:
image: localstack/localstack
ports:
- "4567-4582:4567-4582"
- "8080:8080"
environment:
# Only start a subset of services required for testing.
- SERVICES=s3,sns,sqs,apigateway,lambda,dynamodb,dynamodbstreams,cloudformation
# - DEBUG=${DEBUG- }
# - DATA_DIR=${DATA_DIR- }
# - LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR- }
# - KINESIS_ERROR_PROBABILITY=${KINESIS_ERROR_PROBABILITY- }
# - DOCKER_HOST=unix:///var/run/docker.sock
# volumes:
# - "${TMP_DIR:-/tmp/localstack}:${TMP_DIR:-/tmp/localstack}"
# - "/var/run/docker.sock:/var/run/docker.sock"