I have a problem with docker-compose and mysql:
docker-compose.yml
version: \'2\'
services:
db:
image: mysql
volumes:
- \"./sito/db/:
According the documentation, instead of MYSQL_ROOT_PASSWORD:
you have to use - and = and also you should use a 'password'
The result it will be:
- MYSQL_ROOT_PASSWORD=some_password
In your example:
version: '2'
services:
db:
image: mysql
volumes:
- "./sito/db/:/var/lib/mysql"
ports:
- "3306:3306"
restart: always
environment:
- MYSQL_ROOT_PASSWORD=some_password