Ao montar o arquivo yaml e subir os containers o mysql não executa. Não sei como proceder de acordo com o log de erro, parece ser um problema na pasta var/www.
yaml>>>>>>>>>>>>>>>>>>>>>>>>>>>
version: "3.0" services: db: image: mysql:5.7.19 environment: - MYSQL_DATABASE=loja - MYSQL_USER=root - MYSQL_ALLOW_EMPTY_PASSWORD=yes volumes: - C:/Users/evert/Desktop/Alura/Engenheiro DevOps/Kubernets/Projeto/volume_mysql:/var/lib/mysql web: image: rafanercessian/aplicacao-loja:v1 ports: - 8080:80 depends_on: - db
saida do console>>>>>>>>>>>>>>>>>>>>>
a4257c8c2e1c mysql:5.7.19 "docker-entrypoint.s…" About a minute ago Exited (1) 41 seconds ago projeto_db_1
log do container >>>>>>>>>>>>>>>>>>>>>>>>
Initializing database mysqld: Can't create directory '/var/lib/mysql/' (Errcode: 17 - File exists) 2019-02-12T22:15:02.484003Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000) 2019-02-12T22:15:02.484385Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000) 2019-02-12T22:15:02.485176Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2019-02-12T22:15:02.495010Z 0 [ERROR] Aborting