Created
April 5, 2016 19:33
-
-
Save amjadafanah/ac1b4f0fc6bd0e33aaf4d699a0e52073 to your computer and use it in GitHub Desktop.
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
Nginx: | |
image: nginx:latest | |
publish_all: true | |
mem_min: 50m | |
host: host1 | |
plugins: | |
- !plugin | |
id: 0H1Nk | |
restart: true | |
lifecycle: on_create, post_scale_out:AppServer, post_scale_in:AppServer | |
arguments: | |
# Use container_private_ip if you're using Docker networking | |
- servers=server {{AppServer | container_private_ip}}:8080; | |
# Use container_hostname if you're using Weave networking | |
#- servers=server {{AppServer | container_hostname}}:8080; | |
AppServer: | |
image: tomcat:8.0.21-jre8 | |
mem_min: 600m | |
host: host1 | |
cluster_size: 1 | |
environment: | |
- database_driverClassName=com.mysql.jdbc.Driver | |
- database_url=jdbc:mysql://{{MySQL|container_hostname}}:3306/{{MySQL|MYSQL_DATABASE}} | |
- database_username={{MySQL|MYSQL_USER}} | |
- database_password={{MySQL|MYSQL_ROOT_PASSWORD}} | |
- solr_host={{Solr|container_private_ip}} | |
- solr_port=8983 | |
plugins: | |
- !plugin | |
id: oncXN | |
restart: true | |
arguments: | |
- file_url=https://github.com/dchqinc/dchq-docker-java-solr-mongo-cassandra-example/raw/master/dbconnect.war | |
- dir=/usr/local/tomcat/webapps/ROOT.war | |
- delete_dir=/usr/local/tomcat/webapps/ROOT | |
Solr: | |
image: solr:latest | |
mem_min: 300m | |
host: host1 | |
publish_all: false | |
plugins: | |
- !plugin | |
id: doX8s | |
restart: true | |
arguments: | |
- file_url=https://github.com/dchqinc/dchq-docker-java-solr-mongo-cassandra-example/raw/master/names.zip | |
MySQL: | |
image: mysql:latest | |
host: host1 | |
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