blob: f2398908b4a2130515db48063db04699045dc1ae [file] [log] [blame]
a.sreekumardf7d47f2019-08-29 13:24:04 +00001# Copyright (C) 2019 Nordix Foundation.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14version: '2'
15networks:
16 default:
17 driver: bridge
18services:
19 mariadb:
20 image: mariadb:${POLICY_MARIADB_VER}
21 container_name: mariadb
22 hostname: mariadb
23 command: ['--lower-case-table-names=1', '--wait_timeout=28800']
24 env_file: config/db/db.conf
25 volumes:
26 - ./config/db:/docker-entrypoint-initdb.d
27 ports:
28 - "3306:3306"
29 message-router:
30 image: dmaap/simulator
31 container_name: dmaap-simulator
32 hostname: dmaap-simulator
33 ports:
34 - "3904:3904"
35 policy-pap:
36 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
37 container_name: policy-pap
38 depends_on:
39 - mariadb
40 - message-router
41 hostname: policy-pap
42
43
44 policy-api:
45 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
46 container_name: policy-api
47 depends_on:
48 - mariadb
49 hostname: policy-api
50
51
52 distribution:
53 image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
54 container_name: policy-distribution
55 hostname: policy-distribution
56 volumes:
57 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json
58 - ./config/distribution/temp/:/opt/app/policy/distribution/etc/temp/
59 depends_on:
60 - mariadb
61 - message-router
62 - policy-pap
63 - policy-api
64 - apex
65
66 apex:
67 image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
68 container_name: policy-apex-pdp
69 depends_on:
70 - mariadb
71 - message-router
72 - policy-pap
73 hostname: policy-apex-pdp
74 command: ['/opt/app/policy/apex-pdp/bin/apexOnapPf.sh', '-c', '/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json']
75 ports:
76 - "6969:6969"
77 - "23324:23324"
78 start_dependencies:
79 image: dadarek/wait-for-dependencies
80 environment:
81 TIMEOUT_LENGTH: 60
82 container_name: policy-wait
83 depends_on:
84 - mariadb
85 - message-router
86 hostname: policy-wait
87 command:
88 mariadb:3306
89 message-router:3904
90 start_all:
91 image: dadarek/wait-for-dependencies
92 environment:
93 TIMEOUT_LENGTH: 60
94 container_name: policy-wait-all
95 depends_on:
96 - mariadb
97 - message-router
98 - policy-api
99 - policy-pap
100 - apex
101 - distribution
102 hostname: policy-wait-all
103 command:
104 mariadb:3306
105 message-router:3904
106 policy-api:6969
107 policy-pap:6969
108 apex:6969
109 distribution:6969