Skip to content

Instantly share code, notes, and snippets.

@ryonakae
Last active August 16, 2018 06:28
Show Gist options
  • Save ryonakae/e2c057715c50c56d1556c5e6c08eeff4 to your computer and use it in GitHub Desktop.
Save ryonakae/e2c057715c50c56d1556c5e6c08eeff4 to your computer and use it in GitHub Desktop.
WordPress + MySQLの最小構成
version: '3'
services:
wordpress:
image: wordpress:latest
ports:
- 9000:80
environment:
WORDPRESS_DB_PASSWORD: hoge
depends_on:
- mysql
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: hoge
@ryonakae
Copy link
Author

ryonakae commented Jul 11, 2018

  • mysql:latestだとデータベース接続エラーになるので、5.7を指定する
  • コンテナ起動後、http://localhost:9000でアクセス

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment