Skip to content

Commit e933723

Browse files
committed
chore: add localstack for aws
1 parent f738006 commit e933723

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.localstack/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"services": {
3+
"s3": {
4+
"buckets": [
5+
{
6+
"name": "dev-bucket"
7+
}
8+
]
9+
}
10+
}
11+
}

docker-compose.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,24 @@ services:
3030
POSTGRES_PASSWORD: password
3131
POSTGRES_DATABASE: skillrx_development
3232

33+
localstack:
34+
image: localstack/localstack
35+
ports:
36+
- "127.0.0.1:4566:4566" # LocalStack Gateway
37+
- "127.0.0.1:4510-4559:4510-4559" # external services port range
38+
environment:
39+
- SERVICES=s3
40+
- DEBUG=1
41+
# - DATA_DIR=/tmp/localstack/data
42+
- LOCALSTACK_HOME=/root/.localstack # Set LocalStack home directory
43+
volumes:
44+
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
45+
- "/var/run/docker.sock:/var/run/docker.sock"
46+
- ./.localstack:/root/.localstack
47+
3348
volumes:
3449
db_data:
3550

3651
networks:
3752
default:
38-
name: skillrx_network
53+
name: skillrx_network

0 commit comments

Comments
 (0)