* put back missing Compose Wordpress example
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* addressed review comments, postponing one comment re: yaml code fencing
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* updated/improved Compose samples
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* linked some more basic docker-compose commands
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* coypedit
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* Fix missing database user for Wordpress service
It defaults to root if not specified. https://hub.docker.com/_/wordpress/
* Change root password to avoid confusion.
Update the compose example:
* Remove the `links` directive. This allows swarm to distribute containers across available nodes. (with the `links` directive, swarm will be forced to run both containers on the same node.) Note that the `depends_on` directive is sufficient to ensure correct container start up sequence.
* Use a docker volume instead of bind mounting a local directory.
* Give docker-compose commands for shutting down the Wordpress app, showing how to preserve or remove the persisted data in the volume.
Verified proposed change works correctly in both a swarm and a non-swarm environment.