[DMAAP-48] Initial code import
[dmaap/datarouter.git] / datarouter-prov / src / main / resources / docker-compose / docker-compose.yml
diff --git a/datarouter-prov/src/main/resources/docker-compose/docker-compose.yml b/datarouter-prov/src/main/resources/docker-compose/docker-compose.yml
new file mode 100644 (file)
index 0000000..4e2a81a
--- /dev/null
@@ -0,0 +1,69 @@
+#-------------------------------------------------------------------------------\r
+# ============LICENSE_START==================================================\r
+# * org.onap.dmaap\r
+# * ===========================================================================\r
+# * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
+# * ===========================================================================\r
+# * Licensed under the Apache License, Version 2.0 (the "License");\r
+# * you may not use this file except in compliance with the License.\r
+# * You may obtain a copy of the License at\r
+# * \r
+#  *      http://www.apache.org/licenses/LICENSE-2.0\r
+# * \r
+#  * Unless required by applicable law or agreed to in writing, software\r
+# * distributed under the License is distributed on an "AS IS" BASIS,\r
+# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# * See the License for the specific language governing permissions and\r
+# * limitations under the License.\r
+# * ============LICENSE_END====================================================\r
+# *\r
+# * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
+# *\r
+#-------------------------------------------------------------------------------\r
+version: '2'\r
+services: \r
+  datarouter-prov:\r
+    image: attos/datarouter-prov\r
+    container_name: datarouter-prov\r
+    hostname: prov.datarouternew.com\r
+    ports:\r
+     - "8443:8443"\r
+     - "8080:8080"  \r
+#    volumes:\r
+#     - ./prov_data/proserver.properties:/opt/app/datartr/etc/proserver.properties\r
+#     - ./prov_data/datarouter-prov-jar-with-dependencies.jar:/opt/app/datartr/lib/datarouter-prov-jar-with-dependencies.jar\r
+#      - ./prov_data/addSubscriber.txt:/opt/app/datartr/addSubscriber.txt\r
+#      - ./prov_data/addFeed3.txt:/opt/app/datartr/addFeed3.txt\r
+    entrypoint: ["bash", "-c", "sleep 10; /bin/sh -c ./startup.sh"]\r
+    depends_on:\r
+      - mysql_container\r
+    extra_hosts:\r
+      - "node.datarouternew.com:172.18.0.4"\r
+\r
+    \r
+  datarouter-node:\r
+    image: attos/datarouter-node\r
+    container_name: datarouter-node\r
+    hostname: node.datarouternew.com\r
+    ports:\r
+     - "9443:8443"\r
+     - "9090:8080"\r
+#    volumes:\r
+#     - ./node_data/node.properties:/opt/app/datartr/etc/node.properties\r
+    entrypoint: ["bash", "-c", "sleep 15; /bin/sh -c ./startup.sh"]    \r
+    depends_on:\r
+      - datarouter-prov\r
+    extra_hosts:\r
+      - "prov.datarouternew.com:172.18.0.3"\r
+      \r
+  mysql_container:\r
+    image: mysql/mysql-server:5.6\r
+    container_name: mysql\r
+    ports:\r
+     - "3306:3306"\r
+    environment:\r
+      MYSQL_ROOT_PASSWORD: att2017\r
+    volumes:\r
+    - ./database:/tmp/database\r
+    - ./database:/docker-entrypoint-initdb.d\r
+    \r