blob: 326ce21727c50461a3475f6dbd77890a1f5f9066 [file] [log] [blame]
adheli.tavares1f339f82023-02-17 15:14:07 +00001#
2# ===========LICENSE_START====================================================
3# Copyright 2023 Nordix Foundation.
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 policy-gui:
21 image: ${CONTAINER_LOCATION}onap/policy-gui:latest
22 container_name: policy-gui
23 depends_on:
24 - policy-clamp-backend
25 hostname: policy-gui
26 environment:
27 CLAMP_URL: http://policy-clamp-backend:8445
28 CLAMP_DISABLE_SSL_VALIDATION: "true"
29 ports:
adheli.tavares43a40e12023-07-18 12:04:20 +010030 - "2445:2445"
adheli.tavares1f339f82023-02-17 15:14:07 +000031 volumes:
32 - ./config/policy-gui/application.yaml:/opt/app/policy/gui/etc/application.yml
33 - ./config/policy-gui/logback.xml:/opt/app/policy/gui/etc/logback.xml:ro
34 - ./wait_for_port.sh:/opt/app/policy/gui/bin/wait_for_port.sh:ro
35 entrypoint: ./policy-gui.sh
36 working_dir: /opt/app/policy/gui/bin
37 command: ./policy-gui.sh
38 policy-clamp-backend:
rameshiyer27181e6c52023-03-30 10:50:18 +010039 image: ${CONTAINER_LOCATION}onap/policy-clamp-backend:latest
adheli.tavares1f339f82023-02-17 15:14:07 +000040 container_name: policy-clamp-backend
41 depends_on:
42 - policy-clamp-runtime-acm
43 - distribution
44 hostname: policy-clamp-backend
45 environment:
46 POLICY_API_HOST: api
47 POLICY_PAP_HOST: pap
48 MARIADB_HOST: mariadb
49 RUNTIME_HOST: policy-clamp-runtime-acm
50 ports:
adheli.tavares43a40e12023-07-18 12:04:20 +010051 - "8445:8445"
adheli.tavares1f339f82023-02-17 15:14:07 +000052 volumes:
53 - ./config/clamp/ClampBackend.properties:/opt/policy/clamp/config/ClampBackend.properties:ro
54 - ./config/clamp/logback-backend.xml:/opt/policy/clamp/config/logback.xml:ro
55 working_dir: /opt/policy/clamp
56 command: java
57 -Djava.security.egd=file:/dev/./urandom
58 -XX:MinRAMPercentage=50
59 -XX:MaxRAMPercentage=75
60 -jar ./policy-clamp-backend.jar
61 --spring.config.name=ClampBackend
62 --spring.config.location=/opt/policy/clamp/config/ClampBackend.properties
63