0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

apacheとMySQLをdockerで動かす

Posted at

How to use

環境構築

以下でdockerダウンロードすればおkです. macはdockerとdocker-composeが一緒になってるのであまり気にする必要はありません.
https://www.docker.com/docker-mac

最初の導入時

以下のコマンドを行うことでイメージの作成ができる

git clone git@bitbucket.org:POL_TEAM/docker_for_labbase.git
cd docker_for_local
docker-compose -f docker-compose-dev.yml build

DBの設置場所

setting_docker/mysql/init/

にxxxxxxxxx.sqlを置いておく. dockerコンテナ内で勝手にそれを実行してくれる.

コンテナを起動する

$ docker-compose -f docker-compose-dev.yml up -d

コンテナの停止

$ docker-compse -f docker-compose-dev.yml stop
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?