新建文件夹
编写docker-compose.yaml 文件,如下
services: mysql-compose: image: mysql environment: MYSQL_ROOT_PASSWORD: xxxxx ports: - 3066:3066 mem_limit: 900M cpus: 0.3
docker-compose up -d 后台启动
标签:文件,compose,image,3066,mysql,docker From: https://www.cnblogs.com/sdgtxuyong/p/16960696.html