egg_attach_template/docker/mysql/dev.docker-compose.yml

17 lines
304 B
YAML

version: "3.8"
services:
mysql:
image: micr.cloud.mioffice.cn/zhaoyingbo/mysql:8.0
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: testdb
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
volumes:
mysql-data: