实例3:version: '3'services: mysql: image: mysql network_mode: "host" environment: - MYSQL_ROOT_PASSWORD=123456 volumes: - /home/dbdata:/home/dbdata