Last active
January 19, 2016 03:29
-
-
Save amjadafanah/ab99ec7b8025ee4b1546 to your computer and use it in GitHub Desktop.
Docker Names Directory Java application. This 2-Tier Docker Java Application is deployed on Docker Tomcat Application Server and MySQL. Once the application is deployed, get access to monitoring, alerts and notifications, continuous delivery using Jenkins, application backups, scale in/out, in-browser terminal to access the containers, log viewi…
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
AppServer: | |
image: tomcat:8.0.21-jre8 | |
mem_min: 600m | |
publish_all: true | |
host: host1 | |
cluster_size: 1 | |
environment: | |
- database_driverClassName=com.mysql.jdbc.Driver | |
- database_url=jdbc:mysql://{{MySQL|container_ip}}:3306/{{MySQL|MYSQL_DATABASE}} | |
- database_username={{MySQL|MYSQL_USER}} | |
- database_password={{MySQL|MYSQL_ROOT_PASSWORD}} | |
plugins: | |
- !plugin | |
id: oncXN | |
restart: true | |
arguments: | |
- file_url=https://github.com/dchqinc/dchq-docker-java-example/raw/master/dbconnect.war | |
- dir=/usr/local/tomcat/webapps/ROOT.war | |
- delete_dir=/usr/local/tomcat/webapps/ROOT | |
MySQL: | |
image: mysql:latest | |
host: host2 | |
mem_min: 400m | |
environment: | |
- MYSQL_USER=root | |
- MYSQL_DATABASE=names | |
- MYSQL_ROOT_PASSWORD={{alphanumeric|8}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment