Skip to content

Commit 100d8ae

Browse files
committed
Added dummy .env and a docker-compose.yaml file to give us a basic localstack container to modify
1 parent c128146 commit 100d8ae

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

.env

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# AWS Services to Enable
2+
SERVICES=s3,sqs,sns,dynamodb,lambda
3+
4+
# Debug Mode (1 = Enable, 0 = Disable)
5+
DEBUG=1
6+
7+
# Persistent Data Directory (inside container)
8+
DATA_DIR=/tmp/localstack/data
9+
10+
# Hostname for LocalStack
11+
HOSTNAME=localstack
12+
13+
# Lambda Function Executor ('docker' or 'local')
14+
LAMBDA_EXECUTOR=docker
15+
16+
# AWS Access Credentials (Dummy)
17+
AWS_ACCESS_KEY_ID=test
18+
AWS_SECRET_ACCESS_KEY=test
19+
20+
# Default AWS Region
21+
AWS_DEFAULT_REGION=us-east-1
22+
23+
# Docker Host for Lambda Execution
24+
DOCKER_HOST=unix:///var/run/docker.sock
25+
26+
# Optional: LocalStack Pro API Key (if using LocalStack Pro, leave empty if not)
27+
LOCALSTACK_API_KEY=
28+
29+
# Use SSL (0 = Disable, 1 = Enable)
30+
USE_SSL=0
31+
32+
# Optional CORS Headers and Origins
33+
EXTRA_CORS_ALLOWED_HEADERS=
34+
EXTRA_CORS_ALLOWED_ORIGINS=

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ env
3535
poetry.lock
3636
package-lock.json
3737
test-report.xml
38+
39+
localstack_data/

docker-compose.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: "3.8"
2+
services:
3+
localstack:
4+
image: localstack/localstack
5+
container_name: localstack_ieds
6+
ports:
7+
- "4566:4566" # Main API Gateway
8+
- "4571-4599:4571-4599" # Service-specific ports (optional range)
9+
environment:
10+
- SERVICES=${SERVICES}
11+
- DEBUG=${DEBUG}
12+
- DATA_DIR=${DATA_DIR}
13+
- HOSTNAME=${HOSTNAME}
14+
- LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR}
15+
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
16+
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
17+
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
18+
- DOCKER_HOST=${DOCKER_HOST}
19+
- LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY}
20+
- USE_SSL=${USE_SSL}
21+
- EXTRA_CORS_ALLOWED_HEADERS=${EXTRA_CORS_ALLOWED_HEADERS}
22+
- EXTRA_CORS_ALLOWED_ORIGINS=${EXTRA_CORS_ALLOWED_ORIGINS}
23+
volumes:
24+
- "./localstack_data:/var/lib/localstack" # Persist data in a local volume

0 commit comments

Comments
 (0)