ビルドする
docker build . -t eccube2
mysqlサーバを起動 (name: mysql)
docker run -d -e MYSQL_DATABASE=eccube -e MYSQL_USER=eccube -e MYSQL_PASSWORD=password -e MYSQL_ALLOW_EMPTY_PASSWORD=1 --name mysql mysql:5.6
eccube サーバを起動(name: eccube2 , mysqlコンテナにリンク)
docker run -d -p 8000:80 --name eccube2 --link mysql eccube2
/admin/install にアクセスし、以下進めながら適当に入力する。
- URL: http://127.0.0.1:8000/ (http://localhost:8000/ だとたぶんうまくいかない。ホスト名の正規表現が
.
を必要としてそう) - DB: MySQL
- サーバ: mysql (docker でリンクしたコンテナ名)
- ポート: 3306 (または空白)
- ユーザ: eccube
- データベース名: eccube
- パスワード: password