Skip to content

Commit 1eb858c

Browse files
committed
chore: up aws-sdk
1 parent b32b6af commit 1eb858c

15 files changed

Lines changed: 3015 additions & 1147 deletions

Makefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
STACK_NAME=localstack-web
2+
3+
start:
4+
docker-compose -p ${STACK_NAME} up -d --build --remove-orphans
5+
6+
stop:
7+
docker-compose -p ${STACK_NAME} stop
8+
9+
restart: stop start
10+
11+
clean:
12+
docker-compose -p ${STACK_NAME} down -v
13+
14+
logs:
15+
docker-compose -p ${STACK_NAME} logs -f
16+
17+
run:
18+
npm run dev
19+
20+
build:
21+
npm run build
22+
23+
preview:
24+
npm run preview
25+
26+
lint:
27+
npm run lint
28+
29+
preview:
30+
npm run preview

development-environment/docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ services:
1111
- SERVICES=sns,sqs,s3,lambda,dynamodb,kinesis,kms
1212
- DISABLE_CORS_CHECKS=1
1313
- DISABLE_CORS_HANDLERS=1
14+
- SKIP_CORS_PREFLIGHT=1
15+
- CORS_ALLOW_ORIGIN=*
16+
- CORS_EXPOSE_HEADERS=*
1417
- EXTRA_CORS_ALLOWED_ORIGINS=*
15-
- EXTRA_CORS_ALLOWED_HEADERS=authorization,content-type,x-amz-date,x-amz-security-token,x-amz-user-agent,x-amz-invocation-type,x-amz-log-type
18+
- EXTRA_CORS_ALLOWED_HEADERS=*
19+
- EXTRA_CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,HEAD,OPTIONS
1620
volumes:
1721
- "${TMPDIR:-/tmp}/localstack:/var/lib/localstack"
1822
- "/var/run/docker.sock:/var/run/docker.sock"

docker-compose.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
version: "3"
2+
3+
services:
4+
localstack:
5+
image: localstack/localstack:3.1
6+
ports:
7+
- "127.0.0.1:4510-4559:4510-4559" # external service port range
8+
- "127.0.0.1:4566:4566" # LocalStack Edge Proxy
9+
environment:
10+
- DEBUG=${DEBUG:-0}
11+
- SERVICES=sns,sqs,s3,lambda,dynamodb,kinesis,kms
12+
- DISABLE_CORS_CHECKS=1
13+
- DISABLE_CORS_HANDLERS=1
14+
- SKIP_CORS_PREFLIGHT=1
15+
- CORS_ALLOW_ORIGIN=*
16+
- CORS_EXPOSE_HEADERS=*
17+
- EXTRA_CORS_ALLOWED_ORIGINS=*
18+
- EXTRA_CORS_ALLOWED_HEADERS=*
19+
- EXTRA_CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,HEAD,OPTIONS
20+
volumes:
21+
- "${TMPDIR:-/tmp}/localstack:/var/lib/localstack"
22+
- "/var/run/docker.sock:/var/run/docker.sock"
23+
- ./development-environment/localstack:/etc/localstack/init/ready.d
24+
networks:
25+
- localstack-web-net
26+
27+
localstack-web:
28+
build:
29+
context: .
30+
dockerfile: Dockerfile
31+
args:
32+
- VITE_LOCALSTACK_ENDPOINT=http://localhost:4566
33+
- VITE_AWS_DEFAULT_REGION=us-east-1
34+
- VITE_AWS_ACCESS_KEY_ID=test
35+
- VITE_AWS_SECRET_ACCESS_KEY=test
36+
container_name: localstack-web
37+
ports:
38+
- "3000:80"
39+
depends_on:
40+
- localstack
41+
networks:
42+
- localstack-web-net
43+
environment:
44+
- NODE_ENV=production
45+
46+
networks:
47+
localstack-web-net:

0 commit comments

Comments
 (0)