- Dockerhub or Quay.io account
- Docker runtime at your local machine
- your Deis
If you are using OSX and boot2docker, run boot2docker
$ boot2docker up
$ $(boot2docker shellinit)
Run wordpress and mysql containter
$ docker run --name wordpress-mysql -e MYSQL_ROOT_PASSWORD=password -d mysql
$ docker run --link wordpress-mysql:mysql -p 8080:80 -d wordpress
You can see the site http://${boot2docker ip}:8080
$ docker commit #{container id} #{yourname}/wordpress
$ docker push #{yourname}/wordpress
You need to prepare MySQL and pass the configuration to the worddpress container via deis config.
$ mkdir wordpress
$ cd wordpress
$ deis create
$ deis config:set WORDPRESS_DB_HOST=mysqlurl.com:3306
$ deis config:set WORDPRESS_DB_USER=admin
$ deis config:set WORDPRESS_DB_PASSWORD=password
$ deis pull #{yourname}/wordpress:latest
$ deis open
You need to use S3/Cloudfont plugin of Wordpress for managing assets. https://wordpress.org/plugins/amazon-s3-and-cloudfront/