[DMAAP-48] Initial code import
[dmaap/datarouter.git] / datarouter-prov / src / main / resources / docker-compose / docker-compose.yml
1 #-------------------------------------------------------------------------------\r
2 # ============LICENSE_START==================================================\r
3 # * org.onap.dmaap\r
4 # * ===========================================================================\r
5 # * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
6 # * ===========================================================================\r
7 # * Licensed under the Apache License, Version 2.0 (the "License");\r
8 # * you may not use this file except in compliance with the License.\r
9 # * You may obtain a copy of the License at\r
10 # * \r
11 #  *      http://www.apache.org/licenses/LICENSE-2.0\r
12 # * \r
13 #  * Unless required by applicable law or agreed to in writing, software\r
14 # * distributed under the License is distributed on an "AS IS" BASIS,\r
15 # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16 # * See the License for the specific language governing permissions and\r
17 # * limitations under the License.\r
18 # * ============LICENSE_END====================================================\r
19 # *\r
20 # * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
21 # *\r
22 #-------------------------------------------------------------------------------\r
23 version: '2'\r
24 services: \r
25   datarouter-prov:\r
26     image: attos/datarouter-prov\r
27     container_name: datarouter-prov\r
28     hostname: prov.datarouternew.com\r
29     ports:\r
30      - "8443:8443"\r
31      - "8080:8080"  \r
32 #    volumes:\r
33 #     - ./prov_data/proserver.properties:/opt/app/datartr/etc/proserver.properties\r
34 #     - ./prov_data/datarouter-prov-jar-with-dependencies.jar:/opt/app/datartr/lib/datarouter-prov-jar-with-dependencies.jar\r
35 #      - ./prov_data/addSubscriber.txt:/opt/app/datartr/addSubscriber.txt\r
36 #      - ./prov_data/addFeed3.txt:/opt/app/datartr/addFeed3.txt\r
37     entrypoint: ["bash", "-c", "sleep 10; /bin/sh -c ./startup.sh"]\r
38     depends_on:\r
39       - mysql_container\r
40     extra_hosts:\r
41       - "node.datarouternew.com:172.18.0.4"\r
42 \r
43     \r
44   datarouter-node:\r
45     image: attos/datarouter-node\r
46     container_name: datarouter-node\r
47     hostname: node.datarouternew.com\r
48     ports:\r
49      - "9443:8443"\r
50      - "9090:8080"\r
51 #    volumes:\r
52 #     - ./node_data/node.properties:/opt/app/datartr/etc/node.properties\r
53     entrypoint: ["bash", "-c", "sleep 15; /bin/sh -c ./startup.sh"]    \r
54     depends_on:\r
55       - datarouter-prov\r
56     extra_hosts:\r
57       - "prov.datarouternew.com:172.18.0.3"\r
58       \r
59   mysql_container:\r
60     image: mysql/mysql-server:5.6\r
61     container_name: mysql\r
62     ports:\r
63      - "3306:3306"\r
64     environment:\r
65       MYSQL_ROOT_PASSWORD: att2017\r
66     volumes:\r
67     - ./database:/tmp/database\r
68     - ./database:/docker-entrypoint-initdb.d\r
69     \r