Skip to content

Commit 8e41a50

Browse files
committed
fix: make export service hostname flexible
1 parent 4626b83 commit 8e41a50

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

compose/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ services:
9696
MB3_FRONTEND_URL: "http://${MB3_FRONTEND_HOST}:${MB3_FRONTEND_PORT}"
9797
MB3_FRONTEND_BASE_URL: "${MB3_FRONTEND_BASE_URL}"
9898
MB3_FRONTEND_VERSION: "${MB3_FRONTEND_VERSION}"
99-
EXPORT_SERVICE_URL: "http://localhost:${EXPORT_SERVICE_PORT}"
99+
EXPORT_SERVICE_URL: "http://${EXPORT_SERVICE_HOST}:${EXPORT_SERVICE_PORT}"
100100
EXPORT_SERVICE_URL_INTERNAL: "http://${EXPORT_SERVICE_HOST_INTERNAL}:${EXPORT_SERVICE_PORT_INTERNAL}"
101101
GOOGLE_SEARCH_CONSOLE_KEY: "${GOOGLE_SEARCH_CONSOLE_KEY}"
102102
DISTRIBUTOR_TEXT: "${DISTRIBUTOR_TEXT}"

compose/env.dist

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ DB_LOCAL_PATH=./../data/postgres-data
3131
# The port where the API is exposed for frontend and application usage
3232
MB3_API_PORT=8081
3333

34+
# The host where the API is running
35+
MB3_API_HOST=localhost
36+
3437
# The port used internally by the server
3538
MB3_SERVER_PORT=8080
3639

@@ -62,6 +65,9 @@ SIMILARITY_SERVICE_VERBOSE=false
6265
# The port where the similarity service is exposed
6366
EXPORT_SERVICE_PORT=8083
6467

68+
# The hostname of the export-service
69+
EXPORT_SERVICE_HOST=localhost
70+
6571
# The MassBank-data repository path
6672
EXPORT_MB_DATA_DIRECTORY=./../data/MassBank-data
6773

@@ -75,9 +81,6 @@ EXPORT_SERVICE_HOST_INTERNAL=export-service
7581
# Frontend configuration
7682
# ----------------------
7783

78-
# The host where the API is running
79-
MB3_API_HOST=localhost
80-
8184
# The host where the frontend is running
8285
MB3_FRONTEND_HOST=localhost
8386

0 commit comments

Comments
 (0)