今回は、docker-composeを使って開発用にredisとmysqlを使います。 最近は、docker-composeをサービスごとに作って利用しています。 docker-composeをインストール方法 brew caskでinstallできます。 brew install caskroom/cask/brew-cask brew cask install docker-compose docker-composeの前にredisとmysqlのdockerfileの内容です。 Dockerfileの内容 とりあえず、自分が昔から使っているやつを貼っときます。 今は、docker公式のやつがあるのでそちらを使ってもいいかもしれません。 RedisのDockerfile 公式のやつでもいいです。 https://hub.docker.com/_/redis/ FROM centos:c