关于idea使用docker插件部署项目,volumes报错invalid volume specification
观察volumes那行,没写错的.但是........
使用docker-compose部署时候,volumes报错,invalid volume specification
这是docker-compose.yml
version: "3.7"
services:
app-db:
container_name: db-order
image: mysql:5.7.22
volumes:
- ./mysql/data:/var/lib/mysql
ports:
- "3308:3306"
restart: always
command:
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
--sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO"
environment:
MYSQL_ROOT_PAS