Skip to content

Commit

Permalink
Re-Adding port 8080 (again)
Browse files Browse the repository at this point in the history
Despite being on one network, calling the container by name might have messed things up.

Also adding a print for debugging.
  • Loading branch information
nataliejschultz committed Oct 18, 2023
1 parent 693407e commit 70ff4ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion emission/integrationTests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- GFBK_KEY=$GFBK_KEY
- GEOFABRIK_QUERY_URL=https://geocoding.geofabrik.de/$GFBK_KEY
- OPENSTREETMAP_QUERY_URL=https://nominatim.openstreetmap.org
- NOMINATIM_CONTAINER_URL=http://rhodeisland-nominatim
- NOMINATIM_CONTAINER_URL=http://rhodeisland-nominatim:8080

volumes:
# specify the host directory where the source code should live
Expand Down Expand Up @@ -41,6 +41,8 @@ services:
entrypoint: /app/start.sh
image: nataliejschultz/rhodeisland-image:4.0
container_name: rhodeisland-nominatim
ports:
- "8080:8080"
deploy:
replicas: 1
restart_policy:
Expand Down
2 changes: 1 addition & 1 deletion emission/net/ext_service/geocoder/nominatim.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
try:
NOMINATIM_QUERY_URL = os.environ.get("NOMINATIM_QUERY_URL")
logging.info(f"NOMINATIM_QUERY_URL: {NOMINATIM_QUERY_URL}")
print("Nominatim Query URL Configured!")
print("Nominatim Query URL Configured:", NOMINATIM_QUERY_URL)

if NOMINATIM_QUERY_URL is None:
raise Exception("Nominatim query url not configured")
Expand Down

0 comments on commit 70ff4ab

Please sign in to comment.