提交docker-compose.yml

This commit is contained in:
mkg
2021-11-08 18:52:36 +08:00
parent 51f17c9539
commit 589e0c8ce7
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
# MySql配置信息
MYSQL_HOST=127.0.0.1
# MYSQL_HOST=dbserver
MYSQL_PORT=3306
MYSQL_DATABASE=PearAdminFlask
MYSQL_USERNAME=root
+14
View File
@@ -0,0 +1,14 @@
version: '3'
services:
flask:
build: .
ports:
- "8000:8000"
restart: always
links:
- mysql:dbserver
mysql:
image: "mysql:5.7"
environment:
- MYSQL_ROOT_PASSWORD=root
restart: always