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