Skip to content

Commit

Permalink
Define port for localstack
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjswift committed Dec 25, 2020
1 parent 3b8d5ec commit b4fb084
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@ services:
localstack:
image: localstack/localstack
ports:
- "53:53"
- "443:443"
- "4567-4607:4567-4607"
- "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}"
- '4566:4566'
environment:
- SERVICES=sqs,dynamodb
- DEBUG=1
- DATA_DIR=/tmp/localstack/data
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- '${TMPDIR:-/tmp/localstack}:/tmp/localstack'
- '/var/run/docker.sock:/var/run/docker.sock'
2 changes: 1 addition & 1 deletion email_broker/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fn parse_region(s: &str) -> Region {
if s == LOCALSTACK_REGION {
Region::Custom {
name: LOCALSTACK_REGION.into(),
endpoint: "localhost".into(),
endpoint: "http://localhost:4566".into(),
}
} else {
s.parse().unwrap_or(Region::default())
Expand Down

0 comments on commit b4fb084

Please sign in to comment.