docker-compose 启动顺序 Posted on 2018-07-27 | 在实际生产中 docker-compose.yml 控制服务的启动顺序 dockerizedockerize(git) | download 使用123# DockerfileRUN mv dockerize /usr/bin/ \ && chmod o+x /usr/bin/dockerize dcoekr-compose.yml 1command: ["dockerize", "-wait", "tcp://db:3306", "-timeout", "300s", "/bin/sh", "./start.sh"] 监听的协议和端口,超时时间,执行的命令 start.sh 12python manage.py makemigrations ...python manage.py runserver ... wait-for-itGithub