This setup allows running the backend locally with AWS beans enabled and AWS infrastructure emulated by LocalStack.
Windows:
docker\1.start-db-container-n-localstack.batLinux/macOS:
chmod +x docker/1.start-db-container-n-localstack.sh docker/run-backend.sh docker/2.start-backend-vs-localstack.sh
docker/1.start-db-container-n-localstack.shFrom repository root:
docker compose -f docker/docker-compose.yml up -d --build db-andd3dfx-server localstackOn Windows you can use:
docker\1.start-db-container-n-localstack.batOn Linux/macOS you can use:
chmod +x docker/1.start-db-container-n-localstack.sh
docker/1.start-db-container-n-localstack.sh! IMPORTANT: The backend application itself is not part of this repository.
This repository contains only LocalStack-related configuration and startup scripts used by that application.
If you need a clean rebuild before start (for example after branch switch), run:
./mvnw cleanUse Spring profile localstack:
./mvnw spring-boot:run -Dspring-boot.run.profiles=localstackOr with JVM argument:
./mvnw spring-boot:run -Dspring-boot.run.jvmArguments="-Dspring.profiles.active=localstack"On Windows from repository root you can use:
docker\2.start-backend-vs-localstack.batOn Linux/macOS from repository root you can use:
chmod +x docker/run-backend.sh docker/2.start-backend-vs-localstack.sh
docker/2.start-backend-vs-localstack.shThe script validates local DB readiness before backend startup:
- checks that
db-andd3dfx-servercontainer is running (hard check); - if DB is not running, it prints a hint to start infrastructure with
docker\1.start-db-container-n-localstack.bat.
application-localstack.propertiesis the source of AWS resource names both for Spring app and LocalStack bootstrap.- This file is mounted into LocalStack container as
/etc/localstack/application-aws-resources.properties(seedocker/docker-compose.yml). - Script
docker/localstack/init/10-create-resources.shreadsaws.document-bucketfrom this config and creates S3 bucket with this exact name. - The same script reads all properties matching
aws.*-queueand auto-creates corresponding SQS queues. - AWS clients are redirected to
http://localhost:4566. - LocalStack resources are initialized from the same
application-localstack.propertiesfile.