Skip to content

Commit d872f1b

Browse files
authored
Update relevance benchmark app (#34)
* updated the api port to 8000 so it doesn't conflict with ControlCe process on MAC OS had error running because the mac os ControlCe process was using port 5000 which is the app-api server port * removed pass
1 parent 9d2ca26 commit d872f1b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

example-apps/relevance-workbench/app-api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RUN pip3 install -r requirements.txt
88

99
COPY . .
1010

11-
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=5000" ]
11+
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=8000" ]

example-apps/relevance-workbench/app-ui/src/pages/api/[...path].js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import httpProxy from 'http-proxy';
22

3-
const API_URL = process.env.NEXT_API_URL || "http://localhost:5000";
3+
const API_URL = process.env.NEXT_API_URL || "http://localhost:8000";
44

55
const proxy = httpProxy.createProxyServer();
66

@@ -26,4 +26,4 @@ export default (req, res) => {
2626
resolve();
2727
});
2828
});
29-
};
29+
};

example-apps/relevance-workbench/docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ services:
88
volumes:
99
- './app-api:/usr/src/app'
1010
ports:
11-
- 5000:5000
11+
- 8000:8000
1212
environment:
13-
- CLOUD_ID=<CLOUD_ID>
13+
- CLOUD_ID=<cloud_id>
1414
- ELASTICSEARCH_USERNAME=elastic
15-
- ELASTICSEARCH_PASSWORD=<ELASTICSEARCH_PASSWORD>
15+
- ELASTICSEARCH_PASSWORD=<elastic pass>
1616

1717
client:
1818
build:
@@ -23,6 +23,6 @@ services:
2323
ports:
2424
- 3000:3000
2525
environment:
26-
- NEXT_API_URL=http://host.docker.internal:5000
26+
- NEXT_API_URL=http://host.docker.internal:8000
2727
depends_on:
28-
- api
28+
- api

0 commit comments

Comments
 (0)