Skip to content

Commit 8452498

Browse files
committed
fix: add common.env.default to repository
The file was referenced by documentation and shell scripts but never committed, so the auto-copy fallback in docker-compose-up.sh and docker-compose-e2e-test.sh could never trigger.
1 parent 0174481 commit 8452498

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

common.env.default

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copy to common.env and adjust. common.env is gitignored.
2+
# Host-side AWS CLI uses this URL (Compose maps LocalStack to host port 34566).
3+
LOCALSTACK_ENDPOINT_URL=http://localhost:34566
4+
5+
AWS_REGION=ap-northeast-1
6+
AWS_DEFAULT_REGION=ap-northeast-1
7+
AWS_ACCESS_KEY_ID=x
8+
AWS_SECRET_ACCESS_KEY=x
9+
10+
STREAM_JOURNAL_TABLE_NAME=journal
11+
STREAM_MAX_ITEM_COUNT=32
12+
13+
# Lambda container reaches MySQL on the Compose network (see docker-compose-databases.yml).
14+
DATABASE_URL_LAMBDA=mysql://ceer:ceer@mysql-local:3306/ceer
15+
16+
FUNCTION_NAME=read-model-updater-rmu
17+
# LocalStack 2.x では nodejs20.x が無い場合があるため既定は nodejs18.x
18+
LAMBDA_RUNTIME=nodejs18.x
19+
COMPOSE_PROJECT=cqrs-es-example-js
20+
21+
# 1 = after deploy, stop container read-model-updater-1 to avoid double stream processing
22+
STOP_LOCAL_RMU_AFTER_LAMBDA_DEPLOY=1
23+
24+
# docker-compose-up.sh: build/deploy Lambda zip when non-zero
25+
DOCKER_COMPOSE_UP_BUILD_LAMBDA=1
26+
DOCKER_COMPOSE_UP_DEPLOY_LAMBDA=1
27+
28+
# Override if your compose project name differs (affects LAMBDA_DOCKER_NETWORK default in compose).
29+
# LAMBDA_DOCKER_NETWORK=cqrs-es-example-js_default

0 commit comments

Comments
 (0)