-
-
Notifications
You must be signed in to change notification settings - Fork 258
feat(docker): Custom port in .env #388
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
Open
arnesetzer
wants to merge
6
commits into
pelias:master
Choose a base branch
from
arnesetzer:feat/customPortInEnv
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
509b32d
feat: Allow the usage of a global compose file instead of one for eac…
arnesetzer 9eb05f8
feat: Remove local compose file
arnesetzer 05e8f4c
feat: Use compose -f instead of cd
arnesetzer 30d952f
feat: enable to append/overwrite the global compose file with local o…
arnesetzer 5a185d5
feat(docker): allow custom ports for container
arnesetzer 521d8d4
feat(docker): allow custom ports for elasticsearch
arnesetzer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,136 @@ | ||
| version: '3' | ||
| networks: | ||
| default: | ||
| driver: bridge | ||
| services: | ||
| libpostal: | ||
| image: pelias/libpostal-service | ||
| container_name: pelias_libpostal | ||
| user: "${DOCKER_USER}" | ||
| restart: always | ||
| ports: [ "127.0.0.1:${PELIAS_LIBPOSTAL_PORT:-4400}:4400" ] | ||
| schema: | ||
| image: pelias/schema:master | ||
| container_name: pelias_schema | ||
| user: "${DOCKER_USER}" | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| api: | ||
| image: pelias/api:master | ||
| container_name: pelias_api | ||
| user: "${DOCKER_USER}" | ||
| restart: always | ||
| environment: [ "PORT=${PELIAS_API_PORT:-4000}" ] | ||
| ports: [ "0.0.0.0:${PELIAS_API_PORT:-4000}:${PELIAS_API_PORT:-4000}" ] | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| placeholder: | ||
| image: pelias/placeholder:master | ||
| container_name: pelias_placeholder | ||
| user: "${DOCKER_USER}" | ||
| restart: always | ||
| environment: [ "PORT=${PELIAS_PLACEHOLDER_PORT:-4100}" ] | ||
| ports: [ "127.0.0.1:${PELIAS_PLACEHOLDER_PORT:-4100}:${PELIAS_PLACEHOLDER_PORT:-4100}" ] | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/${DATA_DIR}:/data" | ||
| - "./${peliasRegion}/blacklist/:/data/blacklist" | ||
| whosonfirst: | ||
| image: pelias/whosonfirst:master | ||
| container_name: pelias_whosonfirst | ||
| user: "${DOCKER_USER}" | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/${DATA_DIR}:/data" | ||
| - "./${peliasRegion}/blacklist/:/data/blacklist" | ||
| openstreetmap: | ||
| image: pelias/openstreetmap:master | ||
| container_name: pelias_openstreetmap | ||
| user: "${DOCKER_USER}" | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/${DATA_DIR}:/data" | ||
| - "../${peliasRegion}/blacklist/:/data/blacklist" | ||
| openaddresses: | ||
| image: pelias/openaddresses:master | ||
| container_name: pelias_openaddresses | ||
| user: "${DOCKER_USER}" | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/${DATA_DIR}:/data" | ||
| - "./${peliasRegion}/blacklist/:/data/blacklist" | ||
| geonames: | ||
| image: pelias/geonames:master | ||
| container_name: pelias_geonames | ||
| user: "${DOCKER_USER}" | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/${DATA_DIR}:/data" | ||
| - "./${peliasRegion}/blacklist/:/data/blacklist" | ||
| transit: | ||
| image: pelias/transit:master | ||
| container_name: pelias_transit | ||
| user: "${DOCKER_USER}" | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/${DATA_DIR}:/data" | ||
| csv-importer: | ||
| image: pelias/csv-importer:master | ||
| container_name: pelias_csv_importer | ||
| user: "${DOCKER_USER}" | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/${DATA_DIR}:/data" | ||
| - "./${peliasRegion}/blacklist/:/data/blacklist" | ||
| polylines: | ||
| image: pelias/polylines:master | ||
| container_name: pelias_polylines | ||
| user: "${DOCKER_USER}" | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/${DATA_DIR}:/data" | ||
| interpolation: | ||
| image: pelias/interpolation:master | ||
| container_name: pelias_interpolation | ||
| user: "${DOCKER_USER}" | ||
| restart: always | ||
| environment: [ "PORT=${PELIAS_INTERPOLATION_PORT:-4300}" ] | ||
| ports: [ "127.0.0.1:${PELIAS_INTERPOLATION_PORT:-4300}:${PELIAS_INTERPOLATION_PORT:-4300}" ] | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/${DATA_DIR}:/data" | ||
| pip: | ||
| image: pelias/pip-service:master | ||
| container_name: pelias_pip-service | ||
| user: "${DOCKER_USER}" | ||
| restart: always | ||
| environment: [ "PORT=${PELIAS_PIP_PORT:-4200}" ] | ||
| ports: [ "127.0.0.1:${PELIAS_PIP_PORT:-4200}:${PELIAS_PIP_PORT:-4200}" ] | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/${DATA_DIR}:/data" | ||
| elasticsearch: | ||
| image: pelias/elasticsearch:7.17.27 | ||
| container_name: pelias_elasticsearch | ||
| user: "${DOCKER_USER}" | ||
| restart: always | ||
| ports: [ "127.0.0.1:${PELIAS_ELASTIC_PORT:-9200}:9200", "127.0.0.1:${PELIAS_ELASTIC_NODE_PORT:-9300}:9300" ] | ||
| volumes: | ||
| - "./${peliasRegion}/${DATA_DIR}/elasticsearch:/usr/share/elasticsearch/data" | ||
| ulimits: | ||
| memlock: | ||
| soft: -1 | ||
| hard: -1 | ||
| nofile: | ||
| soft: 65536 | ||
| hard: 65536 | ||
| cap_add: [ "IPC_LOCK" ] | ||
| fuzzy-tester: | ||
| image: pelias/fuzzy-tester:master | ||
| container_name: pelias_fuzzy_tester | ||
| user: "${DOCKER_USER}" | ||
| restart: "no" | ||
| command: "--help" | ||
| volumes: | ||
| - "./${peliasRegion}/pelias.json:/code/pelias.json" | ||
| - "./${peliasRegion}/test_cases:/code/pelias/fuzzy-tester/test_cases" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,10 @@ | ||
| COMPOSE_PROJECT_NAME=pelias | ||
| DATA_DIR=/tmp/pelias/australia | ||
| PELIAS_REGION=./projects/australia | ||
| PELIAS_LIBPOSTAL_PORT=4400 | ||
| PELIAS_API_PORT=4000 | ||
| PELIAS_PLACEHOLDER_PORT=4100 | ||
| PELIAS_INTERPOLATION_PORT=4300 | ||
| PELIAS_PIP_PORT=4200 | ||
| PELIAS_ELASTIC_PORT=9200 | ||
| PELIAS_ELASTIC_NODE_PORT=9300 |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,10 @@ | ||
| COMPOSE_PROJECT_NAME=pelias | ||
| DATA_DIR=/tmp/pelias/austria | ||
| PELIAS_REGION=./projects/austria | ||
| PELIAS_LIBPOSTAL_PORT=4400 | ||
| PELIAS_API_PORT=4000 | ||
| PELIAS_PLACEHOLDER_PORT=4100 | ||
| PELIAS_INTERPOLATION_PORT=4300 | ||
| PELIAS_PIP_PORT=4200 | ||
| PELIAS_ELASTIC_PORT=9200 | ||
| PELIAS_ELASTIC_NODE_PORT=9300 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.