-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 分离前后端的配置文件,便于实现docker部署 * 限制numpy版本 * 修改代码以兼容docker * 便于Docker部署 * 添加部署说明 * 更新文档 * 更新文档
- Loading branch information
Showing
22 changed files
with
195 additions
and
75 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
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,14 @@ | ||
FROM paddlepaddle/paddle:2.4.1 | ||
RUN wget https://github.com/girder/large_image_wheels/raw/wheelhouse/GDAL-3.4.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | ||
#COPY GDAL-3.4.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl . | ||
RUN pip install GDAL-3.4.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | ||
RUN rm -rf GDAL-3.4.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | ||
RUN mkdir /app | ||
COPY PaddleRS /app/PaddleRS | ||
WORKDIR /app/PaddleRS | ||
RUN pip install -r /app/PaddleRS/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple | ||
RUN pip install -e . | ||
COPY backend /app/backend | ||
WORKDIR /app/backend | ||
RUN pip install -r /app/backend/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple | ||
ENTRYPOINT ["python", "app.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
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
Empty file.
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,47 @@ | ||
version: "3.9" | ||
services: | ||
mysql: | ||
image: mysql:5.7.44 | ||
restart: always | ||
environment: | ||
MYSQL_ROOT_PASSWORD: GeoView2023 | ||
volumes: | ||
- /etc/localtime:/etc/localtime:ro | ||
networks: | ||
- GeoView | ||
backend: | ||
build: | ||
context: . | ||
dockerfile: backend.dockerfile | ||
restart: always | ||
volumes: | ||
- /etc/localtime:/etc/localtime:ro | ||
- $PWD/config.yaml:/app/config.yaml | ||
- $PWD/backend/.flaskenv:/app/backend/.flaskenv | ||
- $PWD/backend/model:/app/backend/model | ||
depends_on: | ||
- mysql | ||
links: | ||
- mysql | ||
networks: | ||
- GeoView | ||
frontend: | ||
build: | ||
context: . | ||
dockerfile: frontend.dockerfile | ||
restart: always | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- /etc/localtime:/etc/localtime:ro | ||
- $PWD/config.yaml:/app/config.yaml | ||
- $PWD/frontend/.env:/app/frontend/.env | ||
depends_on: | ||
- backend | ||
networks: | ||
- GeoView | ||
networks: | ||
GeoView: | ||
ipam: | ||
config: | ||
- subnet: 172.19.0.0/24 |
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,6 @@ | ||
FROM node:20.10.0-alpine | ||
RUN mkdir /app | ||
COPY frontend /app/frontend | ||
WORKDIR /app/frontend | ||
RUN npm install | ||
ENTRYPOINT ["npm", "run", "serve"] |
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,3 +1 @@ | ||
VUE_APP_BACKEND_PORT = 5008 | ||
VUE_APP_BACKEND_IP = 127.0.0.1 | ||
VUE_APP_BAIDU_MAP_ACCESS_KEY = <ACCESS_KEY> |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<script> | ||
const BASEURL = "http://"+process.env.VUE_APP_BACKEND_IP+":"+process.env.VUE_APP_BACKEND_PORT+"/" | ||
const BASEURL = "/" | ||
const BASE_IMAGE_URL = window.location.protocol+"//"+window.location.host+BASEURL | ||
export default { | ||
BASEURL, | ||
BASE_IMAGE_URL | ||
}; | ||
</script> | ||
|
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
Oops, something went wrong.