Last active
January 19, 2016 03:17
-
-
Save amjadafanah/4087711ef58008564100 to your computer and use it in GitHub Desktop.
Docker Wordpress and MySQL application template. Deploy and manage this application on vSphere, OpenStack, Amazon EC2, Rackspace, Microsoft Azure, Google Compute Engine, DigitalOcean, IBM SoftLayer and many other clouds. Once the application is deployed, get access to monitoring, alerts and notifications, application backups, in-browser terminal…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wordpress: | |
image: wordpress:latest | |
mem_min: 1g | |
publish_all: true | |
environment: | |
- WORDPRESS_DB_PASSWORD={{MySQL|MYSQL_ROOT_PASSWORD}} | |
- WORDPRESS_DB_HOST={{MySQL|container_private_ip}}:3306 | |
- WORDPRESS_DB_USER={{MySQL|MYSQL_USER}} | |
- WORDPRESS_DB_NAME={{MySQL|MYSQL_DATABASE}} | |
MySQL: | |
image: mysql:latest | |
mem_min: 400m | |
publish_all: false | |
environment: | |
- MYSQL_USER=root | |
- MYSQL_DATABASE=wordpress | |
- MYSQL_ROOT_PASSWORD={{alphanumeric | 12}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment