Skip to content

Commit d9b49a0

Browse files
committed
add a docker compose config + setup event studio
1 parent 3fa5b66 commit d9b49a0

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ __pycache__
1717
# System
1818

1919
.DS_STORE
20+
21+
# LocalStack
22+
23+
volume/

docker-compose.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: "3.8"
2+
3+
services:
4+
localstack:
5+
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
6+
image: localstack/localstack-pro # required for Pro
7+
ports:
8+
- "127.0.0.1:4566:4566" # LocalStack Gateway
9+
- "127.0.0.1:4510-4559:4510-4559" # external services port range
10+
- "127.0.0.1:443:443" # LocalStack HTTPS Gateway (Pro)
11+
environment:
12+
# Activate LocalStack Pro: https://docs.localstack.cloud/getting-started/auth-token/
13+
- LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:?} # required for Pro
14+
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
15+
- DEBUG=${DEBUG:-0}
16+
- EXTRA_CORS_ALLOWED_ORIGINS='*'
17+
- DISABLE_CUSTOM_CORS_APIGATEWAY=1
18+
- DISABLE_CUSTOM_CORS_S3=1
19+
# To setup the LocalStack Extensions
20+
- EXTENSION_AUTO_INSTALL=git+https://${GITHUB_TOKEN}@github.com/localstack/localstack-extension-event-studio/, localstack-extension-mailhog
21+
volumes:
22+
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
23+
- "/var/run/docker.sock:/var/run/docker.sock"
24+
env_file:
25+
- .env

0 commit comments

Comments
 (0)