blob: d6dda495be4377f294496208144b9203f4fd6d20 [file] [log] [blame]
ecaiyanlinux1668b5a2021-02-24 20:11:18 +01001# Copyright (C) 2021 Nordix Foundation. All rights reserved.
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# ============LICENSE_END=================================================
15#
16version: '3'
17
18networks:
19 default:
20 driver: bridge
21
22services:
23 policy-agent:
ecaiyanlinux9002c532021-09-02 12:21:00 +020024 image: "${PMS_IMAGE_BASE}:${PMS_IMAGE_TAG}"
ecaiyanlinux1668b5a2021-02-24 20:11:18 +010025 container_name: policy-agent
26 networks:
27 default:
28 aliases:
29 - policy-agent-container
30 ports:
31 - 8081:8081
32 - 8433:8433
33 volumes:
34 - ./config/application_configuration.json:/opt/app/policy-agent/data/application_configuration.json:ro
35 # For using own certs instead of the default ones (built into the container),
36 # place them in config/ directory, update the application-policyagent.yaml file, and uncomment the following lines
37 # - ./config/keystore-policyagent.jks:/opt/app/policy-agent/etc/cert/keystore.jks:ro
38 # - ./config/truststore-policyagent.jks:/opt/app/policy-agent/etc/cert/truststore.jks:ro
39 # - ./config/application-policyagent.yaml:/opt/app/policy-agent/config/application.yaml:ro
40
41 a1-sim-OSC:
ecaiyanlinux9002c532021-09-02 12:21:00 +020042 image: "${A1_SIM_IMAGE_BASE}:${A1_SIM_IMAGE_TAG}"
ecaiyanlinux1668b5a2021-02-24 20:11:18 +010043 container_name: a1-sim-OSC
44 networks:
45 - default
46 ports:
47 - 30001:8085
48 - 30002:8185
49 environment:
50 - A1_VERSION=OSC_2.1.0
51 - REMOTE_HOSTS_LOGGING=1
52 - ALLOW_HTTP=true
53
54 a1-sim-STD:
ecaiyanlinux9002c532021-09-02 12:21:00 +020055 image: "${A1_SIM_IMAGE_BASE}:${A1_SIM_IMAGE_TAG}"
ecaiyanlinux1668b5a2021-02-24 20:11:18 +010056 container_name: a1-sim-STD
57 networks:
58 - default
59 ports:
60 - 30003:8085
61 - 30004:8185
62 environment:
63 - A1_VERSION=STD_1.1.3
64 - REMOTE_HOSTS_LOGGING=1
65 - ALLOW_HTTP=true
66
67 a1-sim-STD-v2:
ecaiyanlinux9002c532021-09-02 12:21:00 +020068 image: "${A1_SIM_IMAGE_BASE}:${A1_SIM_IMAGE_TAG}"
ecaiyanlinux1668b5a2021-02-24 20:11:18 +010069 container_name: a1-sim-STD-v2
70 networks:
71 - default
72 ports:
73 - 30005:8085
74 - 30006:8185
75 environment:
76 - A1_VERSION=STD_2.0.0
77 - REMOTE_HOSTS_LOGGING=1
78 - ALLOW_HTTP=true