B
B
blantcat2018-05-14 20:55:16
Docker
blantcat, 2018-05-14 20:55:16

docker-compose and mysql. What is the problem?

Good afternoon.
Docker-compose up --build -d starts the container correctly. But at a connection to mysql the error falls out.

version: "3.6"
services:
  db:
    image: mysql:5.7
    restart: always
    ports:
      - "3306:3306"
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: "yes"

5af9ccebdd565145500359.png
At the same time, the hard rustles intensively for a couple more minutes and then the connection rises. It turns out that control is transferred to the terminal even before mysql starts. Tell me, please, how to cure it? This has not been observed before.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hikmat Abdunabiev, 2018-05-15
@blantcat

Read this https://docs.docker.com/compose/startup-order/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question