feat: docker本地调试:
- 1. import不同系统语法不一致 - 2. mysql允许远程访问
This commit is contained in:
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user