Boa Noite.
Estou tentando subir um container mysql com volume, porém estou encontrando uma enorme dificuldade. Segue o meu docker-compose.yml e o erro encontrado no docker logs.
2018-01-18T22:56:43.739998Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2018-01-18T22:56:43.740361Z 0 [ERROR] Aborting
version: '3'
services:
php:
build:
dockerfile: ./docker/php.dockerfile
context: .
image: php
container_name: meu_php
ports:
- "80:80"
networks:
- development-network
volumes:
- /c/Users/Usuario/Desktop/Cibus:/var/www/html
depends_on:
- "mysql"
mysql:
image: mysql:5.6
container_name: meu_sql
networks:
- development-network
environment:
MYSQL_USER: root
MYSQL_ROOT_PASSWORD: admin
ports:
- "3306:3306"
volumes:
- /c/Users/Usuario/Desktop/databases:/var/lib/mysql
networks:
development-network:
driver: bridge
volumes:
mysql_data:
driver: local