0
0

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.

WordPress Docker メモ

Posted at

WordPress Docker Official Images

network コマンド

docker network create wp_network
docker run --net wp_network -d --name wp-mysql -e MYSQL_ROOT_PASSWORD=password mysql:5.7.25
docker run --net wp_network -d --name wp -p 8080:80  -v /home/docker/guest/app/wp:/var/www/html wordpress

DB側にスキーマは作成しておくこと

CREATE SCHEMA IF NOT EXISTS `wordpress` DEFAULT CHARACTER SET utf8mb4;

8080にアクセスしてインストールを進める
この場合設定は

データベース名 wordpress (スキーマ名)
ユーザー名 root
パスワード password
データベースのホスト名 wp-mysql
テーブル接頭辞 wp_ (自由)
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?