blob: 5098a1777763b46fa16ae28bac7ee276c5ae352c [file] [log] [blame]
Jim Hahn426ddc12020-04-14 15:19:53 -04001#
2# ===========LICENSE_START====================================================
3# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
4# ============================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16# ============LICENSE_END=====================================================
17#
18version: '2'
19services:
20 mariadb:
21 image: mariadb:${POLICY_MARIADB_VER}
22 container_name: mariadb
23 hostname: mariadb
24 command: ['--lower-case-table-names=1', '--wait_timeout=28800']
25 env_file: ../config/db/db.conf
26 volumes:
27 - ../config/db:/docker-entrypoint-initdb.d:ro
28 expose:
29 - 3306
30 policy.api.simpledemo.onap.org:
31 image: policy/simulators
32 container_name: policy.api.simpledemo.onap.org
33 hostname: policy.api.simpledemo.onap.org
34 volumes:
35 - ../config/sim-all:/opt/app/policy/simulators/etc/parameters:ro
36 expose:
37 - 6666
38 - 6668
39 - 6669
40 - 6670
41 - 3905
Jim Hahnf340ddb2020-04-15 08:43:54 -040042 api:
43 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
44 container_name: policy-api
45 depends_on:
46 - mariadb
47 hostname: policy-api
48 expose:
49 - 6969
50 pap:
51 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
52 container_name: policy-pap
53 depends_on:
54 - mariadb
55 hostname: policy-pap
56 expose:
57 - 6969
58 volumes:
59 - ./custom/papDefaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro
Jim Hahn426ddc12020-04-14 15:19:53 -040060 policy-xacml-pdp:
61 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
62 container_name: policy-xacml-pdp
63 depends_on:
64 - mariadb
65 - policy.api.simpledemo.onap.org
66 hostname: policy-xacml-pdp
67 expose:
68 - 6969
69 volumes:
Jim Hahnf340ddb2020-04-15 08:43:54 -040070 - ./custom/xacmlDefaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
Jim Hahn426ddc12020-04-14 15:19:53 -040071 drools:
72 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
73 container_name: drools
74 depends_on:
75 - mariadb
76 - policy.api.simpledemo.onap.org
77 hostname: drools
78 expose:
79 - 6969
80 - 9696
81 volumes:
82 - ../config/drools-apps/custom:/tmp/policy-install/config:ro
83 env_file:
84 - ../config/drools-apps/env/base.conf
85 - ../config/drools-apps/env/feature-healthcheck.conf
86 - ../config/drools-apps/env/feature-pooling-dmaap.conf
87 start_dependencies:
88 image: dadarek/wait-for-dependencies
89 environment:
90 TIMEOUT_LENGTH: 60
91 container_name: policy-wait
92 depends_on:
93 - mariadb
94 - policy.api.simpledemo.onap.org
95 hostname: policy-wait
96 command:
97 mariadb:3306
98 policy.api.simpledemo.onap.org:6666
99 policy.api.simpledemo.onap.org:6668
100 policy.api.simpledemo.onap.org:6669
101 policy.api.simpledemo.onap.org:6670
102 policy.api.simpledemo.onap.org:3905
Jim Hahnf340ddb2020-04-15 08:43:54 -0400103 start_pap:
104 image: dadarek/wait-for-dependencies
105 environment:
106 TIMEOUT_LENGTH: 120
107 container_name: policy-wait-pap
108 depends_on:
109 - mariadb
110 - policy.api.simpledemo.onap.org
111 - pap
112 hostname: policy-wait-pap
113 command:
114 mariadb:3306
115 policy.api.simpledemo.onap.org:3905
116 pap:6969
Jim Hahn426ddc12020-04-14 15:19:53 -0400117 start_all:
118 image: dadarek/wait-for-dependencies
119 environment:
120 TIMEOUT_LENGTH: 120
121 container_name: policy-wait-all
122 depends_on:
123 - mariadb
124 - policy.api.simpledemo.onap.org
Jim Hahnf340ddb2020-04-15 08:43:54 -0400125 - api
126 - pap
Jim Hahn426ddc12020-04-14 15:19:53 -0400127 - policy-xacml-pdp
128 - drools
129 hostname: policy-wait-all
130 command:
131 mariadb:3306
132 policy.api.simpledemo.onap.org:6666
133 policy.api.simpledemo.onap.org:6668
134 policy.api.simpledemo.onap.org:6669
135 policy.api.simpledemo.onap.org:6670
136 policy.api.simpledemo.onap.org:3905
Jim Hahnf340ddb2020-04-15 08:43:54 -0400137 api:6969
138 pap:6969
Jim Hahn426ddc12020-04-14 15:19:53 -0400139 drools:6969