[AAF-21] Initial code import
[aaf/authz.git] / authz-service / src / main / resources / docker-compose / docker-compose.yml
1 #-------------------------------------------------------------------------------\r
2 # ============LICENSE_START====================================================\r
3 # * org.onap.aai\r
4 # * ===========================================================================\r
5 # * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
6 # * Copyright © 2017 Amdocs\r
7 # * ===========================================================================\r
8 # * Licensed under the Apache License, Version 2.0 (the "License");\r
9 # * you may not use this file except in compliance with the License.\r
10 # * You may obtain a copy of the License at\r
11 # * \r
12 #  *      http://www.apache.org/licenses/LICENSE-2.0\r
13 # * \r
14 #  * Unless required by applicable law or agreed to in writing, software\r
15 # * distributed under the License is distributed on an "AS IS" BASIS,\r
16 # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17 # * See the License for the specific language governing permissions and\r
18 # * limitations under the License.\r
19 # * ============LICENSE_END====================================================\r
20 # *\r
21 # * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
22 # *\r
23 #-------------------------------------------------------------------------------\r
24 version: '2'\r
25 services:\r
26   aaf_container:\r
27     image: attos/aaf\r
28     ports:\r
29       - "8101:8101"\r
30 \r
31     links:\r
32       - cassandra_container\r
33     volumes:\r
34     # - ./authAPI.props:/opt/app/aaf/authz-service/2.0.15/etc/authAPI.props\r
35       - ./wait_for_host_port.sh:/tmp/wait_for_host_port.sh\r
36       - ./data2:/data\r
37       - ./runaafcli.sh:/opt/app/aaf/authz-service/2.0.15/runaafcli.sh\r
38     #  - ./com.osaaf.common.props:/opt/app/aaf/authz-service/2.0.15/etc/com.osaaf.common.props\r
39     # - ./cadi-core-1.3.0.jar:/opt/app/aaf/authz-service/2.0.15/lib/cadi-core-1.3.0.jar\r
40     #  - ./cadi-aaf-1.3.0.jar:/opt/app/aaf/authz-service/2.0.15/lib/cadi-aaf-1.3.0.jar\r
41     # - ./cadi-client-1.3.0.jar:/opt/app/aaf/authz-service/2.0.15/lib/cadi-client-1.3.0.jar\r
42     # - ./authz-service-2.0.15.jar:/opt/app/aaf/authz-service/2.0.15/lib/authz-service-2.0.15.jar\r
43     #  - ./dme2-3.1.200.jar:/opt/app/aaf/authz-service/2.0.15/lib/dme2-3.1.200.jar\r
44     entrypoint: ["bash", "-c", "/tmp/wait_for_host_port.sh cassandra_container 9042; sleep 20; /bin/sh -c ./startup.sh"]\r
45     environment:\r
46       - CASSANDRA_CLUSTER=cassandra_container\r
47     \r
48 \r
49   cassandra_container:\r
50     image: cassandra:2.1.16\r
51     ports:\r
52       - "7000:7000"\r
53       - "7001:7001"\r
54       - "9042:9042"\r
55       - "9160:9160"\r
56     volumes:\r
57       - ./data:/data\r
58       - ./wait_for_host_port.sh:/tmp/wait_for_host_port.sh\r
59     entrypoint: ["bash", "-c", "(/tmp/wait_for_host_port.sh localhost 9042 cqlsh --file /data/init.cql -u cassandra -p cassandra localhost; cqlsh --file /data/ecomp.cql -u cassandra -p cassandra localhost) & (/docker-entrypoint.sh cassandra -f)"]\r