Skip to content

Conversation

@arnesetzer
Copy link
Contributor

@arnesetzer arnesetzer commented Aug 7, 2025

👋 I did some awesome work for the Pelias project and would love for everyone to have a look at it and provide feedback.


Here's the reason for this change 🚀

As mentioned in #253 custom port bindings in the .env would be nice in case the machine handles multiple geocoder instances. This PR is based on #386 since I was lazy and don't want to edit all compose files if there is a good chance that the PR will get merged first.


Here's what actually got changed 👏

Every .env file get the new variables set to the default ports. If the ports are not set the docker-compose.yml will use the default ones as well.


Here's how others can test the changes 👀

  1. Change the ports in the .env file
  2. Spin up the instance
  3. Check with pelias compose ps

container_name: pelias_libpostal
user: "${DOCKER_USER}"
restart: always
ports: [ "127.0.0.1:${PELIAS_LIBPOSTAL_PORT:-4400}:4400" ]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since libpostal won't provide a custom port configuration inside the container it stays on 4400 internally.

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

Successfully merging this pull request may close these issues.

1 participant