-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from longxiaofei/master
chore: update docker-compose.yml
- Loading branch information
Showing
9 changed files
with
127 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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,55 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
/server/dataset/ | ||
|
||
.vscode | ||
|
||
safety | ||
dist | ||
|
||
coverage | ||
|
||
.cache | ||
.eslintcache | ||
|
||
*.cert | ||
*.key | ||
*.pem | ||
|
||
packages/frontend/public/datasets/* | ||
|
||
*service.json | ||
*.db | ||
|
||
for_test/ | ||
sasl-0.3.1-cp310-cp310-win_amd64.whl | ||
__pycache__/ | ||
.idea/ | ||
connect.db | ||
not_sqlalchemy/ | ||
run_flask_app.bat | ||
venv | ||
|
||
dataset-with-metas.json |
This file contains 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,12 +1,16 @@ | ||
FROM node:16 as build-stage | ||
FROM node:16 AS build-stage | ||
|
||
COPY . /app | ||
|
||
WORKDIR /app | ||
ENV NODE_OPTIONS=--max_old_space_size=4096 | ||
RUN npm config set registry https://registry.npmmirror.com | ||
RUN yarn config set registry https://registry.npmmirror.com | ||
|
||
RUN yarn install | ||
RUN yarn workspace rath-client build2 | ||
|
||
FROM nginx:latest | ||
COPY --from=build-stage /app/packages/rath-client/build /usr/share/nginx/html | ||
CMD ["nginx", "-g", "daemon off;"] | ||
RUN yarn workspace rath-client buildOnDocker | ||
|
||
FROM nginx:1.24 | ||
|
||
COPY --from=node-builder /app/packages/rath-client/build /usr/share/nginx/html | ||
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf | ||
|
||
ENTRYPOINT ["nginx", "-g", "daemon off;"] |
This file contains 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,7 +1,24 @@ | ||
version: "2" | ||
|
||
services: | ||
frontend: | ||
base: | ||
restart: always | ||
build: | ||
context: . | ||
dockerfile: client.dockerfile | ||
ports: | ||
- 8080:80 | ||
- 9083:80 | ||
|
||
connector-api: | ||
restart: always | ||
network_mode: service:base | ||
build: | ||
context: ./services/connector | ||
dockerfile: Dockerfile | ||
|
||
prediction-api: | ||
restart: always | ||
network_mode: service:base | ||
build: | ||
context: ./services/prediction | ||
dockerfile: Dockerfile |
This file contains 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,23 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
|
||
location /connector/api { | ||
proxy_pass http://localhost:5001/api; | ||
} | ||
|
||
location /api/train_test { | ||
proxy_pass http://localhost:5533/api/train_test; | ||
} | ||
|
||
} |
This file contains 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 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 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 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,9 @@ | ||
FROM python:3.10.7 | ||
|
||
WORKDIR /prediction | ||
|
||
COPY . /prediction | ||
|
||
RUN pip3 install --trusted-host pypi.python.org -r requirements.txt | ||
|
||
CMD python3 -u /prediction/main.py |
This file contains 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,6 @@ | ||
Flask | ||
Flask_cors | ||
gevent | ||
scikit-learn==1.3.0 | ||
xgboost==1.7.6 | ||
pandas==2.0.3 |
9782aa0
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.
Successfully deployed to the following URLs:
rath – ./
rath-steel.vercel.app
rath-git-master-kanaries.vercel.app
rath.kanaries.net
rath-kanaries.vercel.app