docker-compose部署mysql配置
时间:2021-07-01 10:21:17
帮助过:438人阅读
3‘
services:
mysql:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=
123456
- MYSQL_DATABASE=
wordpress
volumes:
- $PWD/conf:/etc/mysql/
conf.d
- $PWD/logs:/
logs
- $PWD/data:/var/lib/
mysql
container_name: db
ports:
-
"3306:3306"
docker-compose部署mysql配置
标签:logs etc com mys 文件 environ pwd span image