From 208414774984b10441b339e78d4b85b3468da1ad Mon Sep 17 00:00:00 2001 From: wengsy <1071452430@qq.com> Date: Wed, 13 Jan 2021 22:56:11 +0800 Subject: [PATCH] fin-v0.1 --- docker-compose.yml | 19 +++++++++++++++++++ mysql/Dockerfile | 1 + requirements.txt | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 docker-compose.yml create mode 100644 mysql/Dockerfile create mode 100644 requirements.txt diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bdb12ee --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,19 @@ +version: '3' +services: + mysql: + image: mysql:5.7 + build: ./mysql + environment: + - MYSQL_DATABASE=cp + - MYSQL_ROOT_PASSWORD=cui,logic + ports: + - "3306:3306" + command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci + web: + build: ./APP + ports: + - "5000:5000" + links: + - mysql:mysql + depends_on: + - mysql diff --git a/mysql/Dockerfile b/mysql/Dockerfile new file mode 100644 index 0000000..7efee1d --- /dev/null +++ b/mysql/Dockerfile @@ -0,0 +1 @@ +FROM mysql:5.7 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ab264f7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +Flask==1.1.2 +pymongo==3.11.0 +SQLAlchemy==1.3.22 +requests==2.20.0 +beautifulsoup4==4.9.3