1 Star 0 Fork 1.1K

Ezreal-lo/Pear Admin Flask

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 887 Bytes
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2023-04-17 07:20 . 修改docker-compose部署方式
version: '3'
services:
mysql:
image: "mysql:5.7"
container_name: mysql
restart: always
ports:
- "3306:3306"
volumes:
- "./dockerdata/mysql/data:/var/lib/mysql"
- "./dockerdata/mysql/initdb:/docker-entrypoint-initdb.d"
environment:
LANG: C.UTF-8
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: 123456
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci',
]
networks:
flask-network:
ipv4_address: 172.10.1.31
flask:
build:
context: .
dockerfile: Dockerfile.server
container_name: flask
restart: always
ports:
- "8000:8000"
depends_on:
- mysql
networks:
flask-network:
ipv4_address: 172.10.1.11
networks:
flask-network:
driver: bridge
ipam:
config:
- subnet: 172.10.0.0/16
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/ezrealol/pear-admin-flask.git
git@gitee.com:ezrealol/pear-admin-flask.git
ezrealol
pear-admin-flask
Pear Admin Flask
master

搜索帮助