Skip to content

Commit

Permalink
Fix localstack volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisantos committed Dec 7, 2024
1 parent 2b55159 commit 4843b53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Empty file added .env
Empty file.
15 changes: 8 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ version: '3.4'

services:
ruisantos.labs.localstack:
image: "localstack/localstack"
image: localstack/localstack
restart: always
ports:
- "4566:4566"
environment:
- DOCKER_HOST=unix:///var/run/docker.sock
- DYNAMODB_SHARE_DB=1
- SERVICES=dynamodb:4569
- DEFAULT_REGION=us-east-1
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/private${TMPDIR}:/tmp/localstack"
- "./var/localstack:/var/lib/localstack"
- "./var/docker.sock:/var/run/docker.sock"

ruisantos.labs.api:
image: ${DOCKER_REGISTRY-}ruisantos.labs.api
Expand All @@ -26,7 +27,7 @@ services:
- AWS_ENDPOINT_URL=http://ruisantos.labs.localstack:4566
- LABS_ALLOWED_ORIGINS=http://localhost:8002
ports:
- 8001:80
- "8001:80"
build:
context: .
dockerfile: ./Dockerfile
Expand All @@ -36,7 +37,7 @@ services:
depends_on:
- ruisantos.labs.api
ports:
- 8002:80
- "8002:80"
build:
context: ./Server/RuiSantos.Labs.Client
dockerfile: ./Dockerfile

0 comments on commit 4843b53

Please sign in to comment.