Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] External ports in docker-compose #1667

Open
emirot opened this issue Feb 25, 2025 · 2 comments
Open

[Question] External ports in docker-compose #1667

emirot opened this issue Feb 25, 2025 · 2 comments

Comments

@emirot
Copy link

emirot commented Feb 25, 2025

In the documentation here https://docs.localstack.cloud/getting-started/installation/

I can see that

services:
  localstack:
    container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
    image: localstack/localstack
    ports:
      - "127.0.0.1:4566:4566"            # LocalStack Gateway
      - "127.0.0.1:4510-4559:4510-4559"  # external services port range
    environment:
      # LocalStack configuration: https://docs.localstack.cloud/references/configuration/
      - DEBUG=${DEBUG:-0}
    volumes:
      - "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
      - "/var/run/docker.sock:/var/run/docker.sock"

However I do not understand the purpose of the external-service port.

I tried and create and create a record in a kinesis stream and the only endpoint I could reach is 4566.

I have tried removing this line 127.0.0.1:4510-4559:4510-4559" relaunched, and it still worked.

So maybe it is just for some internals?

@emirot
Copy link
Author

emirot commented Feb 27, 2025

@bentsku I would be happy to add that in the doc

@bentsku
Copy link
Contributor

bentsku commented Feb 28, 2025

Hello @emirot,

This is the page in the documentation about External Service Port Range:
https://docs.localstack.cloud/references/external-ports/

If you're only using Kinesis, you don't have to use it. It is used when LocalStack is starting services like RDS instances, or like the documentation mentions, OpenSearch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants