feat: docker本地调试:

- 1. import不同系统语法不一致
- 2. mysql允许远程访问
This commit is contained in:
eric
2022-12-18 21:12:02 +08:00
parent 4272acb677
commit 1423965912
25 changed files with 106 additions and 28 deletions

24
docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile.development
volumes:
- .:/code
ports:
- '27081:80'
container_name: wxcloud_fastapiweb
labels:
- wxPort=27083
- hostPort=27081
- wxcloud=fastapiweb
- role=container
environment:
- MYSQL_USERNAME=
- MYSQL_PASSWORD=
- MYSQL_ADDRESS=
networks:
default:
external:
name: wxcb0