a.sreekumar | 2070574 | 2020-02-14 12:03:33 +0000 | [diff] [blame] | 1 | # Copyright 2018-2020 AT&T Intellectual Property. All rights reserved |
pdragosh | 3f9a096 | 2019-04-16 13:19:45 -0400 | [diff] [blame] | 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. |
| 14 | version: '2' |
| 15 | services: |
| 16 | mariadb: |
a.sreekumar | 2070574 | 2020-02-14 12:03:33 +0000 | [diff] [blame] | 17 | image: mariadb:${POLICY_MARIADB_VER} |
pdragosh | 3f9a096 | 2019-04-16 13:19:45 -0400 | [diff] [blame] | 18 | container_name: mariadb |
| 19 | hostname: mariadb |
| 20 | command: ['--lower-case-table-names=1', '--wait_timeout=28800'] |
a.sreekumar | 2070574 | 2020-02-14 12:03:33 +0000 | [diff] [blame] | 21 | env_file: |
| 22 | - ${WORKSPACE}/scripts/policy/config/db/db.conf |
pdragosh | 3f9a096 | 2019-04-16 13:19:45 -0400 | [diff] [blame] | 23 | volumes: |
a.sreekumar | 2070574 | 2020-02-14 12:03:33 +0000 | [diff] [blame] | 24 | - ${WORKSPACE}/scripts/policy/config/db:/docker-entrypoint-initdb.d |
pdragosh | 3f9a096 | 2019-04-16 13:19:45 -0400 | [diff] [blame] | 25 | expose: |
a.sreekumar | 2070574 | 2020-02-14 12:03:33 +0000 | [diff] [blame] | 26 | - 3306 |
pdragosh | 3f9a096 | 2019-04-16 13:19:45 -0400 | [diff] [blame] | 27 | nexus: |
| 28 | image: sonatype/nexus:2.14.8-01 |
| 29 | container_name: nexus |
| 30 | hostname: nexus |
pdragosh | 3f9a096 | 2019-04-16 13:19:45 -0400 | [diff] [blame] | 31 | expose: |
a.sreekumar | 2070574 | 2020-02-14 12:03:33 +0000 | [diff] [blame] | 32 | - 8081 |
pdragosh | 3f9a096 | 2019-04-16 13:19:45 -0400 | [diff] [blame] | 33 | drools: |
a.sreekumar | 2070574 | 2020-02-14 12:03:33 +0000 | [diff] [blame] | 34 | image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION} |
| 35 | user: 1000:1000 |
pdragosh | 3f9a096 | 2019-04-16 13:19:45 -0400 | [diff] [blame] | 36 | container_name: drools |
| 37 | depends_on: |
a.sreekumar | 2070574 | 2020-02-14 12:03:33 +0000 | [diff] [blame] | 38 | - mariadb |
| 39 | - nexus |
pdragosh | 3f9a096 | 2019-04-16 13:19:45 -0400 | [diff] [blame] | 40 | hostname: drools |
| 41 | expose: |
a.sreekumar | 2070574 | 2020-02-14 12:03:33 +0000 | [diff] [blame] | 42 | - 6969 |
| 43 | - 9696 |
pdragosh | 3f9a096 | 2019-04-16 13:19:45 -0400 | [diff] [blame] | 44 | volumes: |
a.sreekumar | 2070574 | 2020-02-14 12:03:33 +0000 | [diff] [blame] | 45 | - ${WORKSPACE}/scripts/policy/config/drools/custom:/tmp/policy-install/config |
| 46 | env_file: |
| 47 | - ${WORKSPACE}/scripts/policy/config/drools/env/base.conf |