blob: 57d24eca1b5e4b58c8aa51cc56ad0fe36249cca5 [file] [log] [blame]
demx8as6a93cb372021-06-06 16:05:58 +02001################################################################################
Martin Skorupski990de722023-02-03 12:30:55 +01002# Copyright 2023 highstreet technologies GmbH
demx8as6a93cb372021-06-06 16:05:58 +02003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16version: '3.8'
17
18x-common_env: &common_env
19 IPv6_ENABLED: ${IPv6_ENABLED}
20 SSH_CONNECTIONS: ${SSH_CONNECTIONS}
Alex Stancu907218a2022-03-03 14:47:18 +020021 TLS_CONNECTIONS: ${TLS_CONNECTIONS}
demx8as6a93cb372021-06-06 16:05:58 +020022 NTS_NF_MOUNT_POINT_ADDRESSING_METHOD: ${NTS_NF_MOUNT_POINT_ADDRESSING_METHOD}
Alex Stancu907218a2022-03-03 14:47:18 +020023
demx8as6a93cb372021-06-06 16:05:58 +020024 NTS_HOST_IP: ${NTS_HOST_IP}
25 NTS_HOST_BASE_PORT: ${NTS_HOST_BASE_PORT}
26 NTS_HOST_NETCONF_SSH_BASE_PORT: ${NTS_HOST_NETCONF_SSH_BASE_PORT}
27 NTS_HOST_NETCONF_TLS_BASE_PORT: ${NTS_HOST_NETCONF_TLS_BASE_PORT}
28 NTS_HOST_TRANSFER_FTP_BASE_PORT: ${NTS_HOST_TRANSFER_FTP_BASE_PORT}
29 NTS_HOST_TRANSFER_SFTP_BASE_PORT: ${NTS_HOST_TRANSFER_SFTP_BASE_PORT}
Alex Stancu907218a2022-03-03 14:47:18 +020030
demx8as6a93cb372021-06-06 16:05:58 +020031 SDN_CONTROLLER_PROTOCOL: ${SDN_CONTROLLER_PROTOCOL}
Martin Skorupski470bbf52023-05-14 12:35:12 +020032 SDN_CONTROLLER_IP: ${SDNC_DCN_HOST}
33 SDN_CONTROLLER_CALLHOME_IP: ${SDNC_DCN_HOST}
demx8as6a93cb372021-06-06 16:05:58 +020034 SDN_CONTROLLER_USERNAME: ${ADMIN_USERNAME}
35 SDN_CONTROLLER_PASSWORD: ${ADMIN_PASSWORD}
Alex Stancu907218a2022-03-03 14:47:18 +020036
demx8as6a93cb372021-06-06 16:05:58 +020037 VES_COMMON_HEADER_VERSION: ${VES_COMMON_HEADER_VERSION}
38 VES_ENDPOINT_PROTOCOL: ${VES_ENDPOINT_PROTOCOL}
Martin Skorupski470bbf52023-05-14 12:35:12 +020039 VES_ENDPOINT_IP: ${VES_COLLECTOR_DCN_HOST}
demx8as6a93cb372021-06-06 16:05:58 +020040 VES_ENDPOINT_PORT: ${VES_ENDPOINT_PORT}
41 VES_ENDPOINT_AUTH_METHOD: ${VES_ENDPOINT_AUTH_METHOD}
42 VES_ENDPOINT_USERNAME: ${VES_ENDPOINT_USERNAME}
43 VES_ENDPOINT_PASSWORD: ${VES_ENDPOINT_PASSWORD}
44
45x-du_env: &du_env
demx8as6243ef372022-10-21 13:35:53 +020046 # NTS_NF_STANDALONE_START_FEATURES: "datastore-populate ves-heartbeat ves-file-ready ves-pnf-registration web-cut-through"
47 NTS_NF_STANDALONE_START_FEATURES: "datastore-populate ves-heartbeat ves-file-ready ves-pnf-registration ves-o1-pnf-registration web-cut-through"
demx8as6a93cb372021-06-06 16:05:58 +020048
49x-ru-env: &ru_env
50 NTS_NF_STANDALONE_START_FEATURES: "datastore-populate netconf-call-home web-cut-through"
51
52x-topo-env: &topo_env
53 NTS_NF_STANDALONE_START_FEATURES: "datastore-populate netconf-call-home web-cut-through"
54
55x-nf: &common_nf
56 stop_grace_period: 5m
Alex Stancu350e5f72023-03-21 16:35:14 +020057 extra_hosts:
demx8as6012475c2023-07-05 16:47:01 +000058 - "controller.dcn.${HTTP_DOMAIN}:${HOST_IP}"
59 - "ves-collector.dcn.${HTTP_DOMAIN}:${HOST_IP}"
demx8as6a93cb372021-06-06 16:05:58 +020060 cap_add:
61 - SYS_ADMIN
62 - SYS_PTRACE
63
64services:
65 ntsim-ng-o-du-1122:
66 <<: *common_nf
67 image: "${NEXUS3_DOCKER_REPO}nts-ng-o-ran-du:${NTS_BUILD_VERSION}"
68 container_name: ntsim-ng-o-du-1122
Alex Stancu80bfd372022-02-04 17:30:41 +020069 hostname: O-DU-1122
demx8as6a93cb372021-06-06 16:05:58 +020070 volumes:
71 - ./ntsim-ng-o-du/config.json:/opt/dev/ntsim-ng/config/config.json
72 - ./ntsim-ng-o-du/o-ran-sc-du-hello-world-running.xml:/opt/dev/deploy/data/o-ran-sc-du-hello-world-running.xml
73 - ./ntsim-ng-o-du/o-ran-sc-du-hello-world-operational.xml:/opt/dev/deploy/data/o-ran-sc-du-hello-world-operational.xml
74 environment:
Martin Skorupskidd52b072023-04-05 17:25:19 +020075 <<: [*common_env, *du_env]
demx8as6a93cb372021-06-06 16:05:58 +020076
Alex Stancuf7494d02023-04-06 16:30:23 +030077 ntsim-ng-o-du-1123:
Alex Stancu0eef0522023-04-05 21:17:52 +030078 <<: *common_nf
79 image: "${LOCAL_DOCKER_REPO}nts-ng-o-ran-du-rel-18:${NTS_BUILD_VERSION}"
Alex Stancuf7494d02023-04-06 16:30:23 +030080 container_name: ntsim-ng-o-du-1123
81 hostname: O-DU-1123
Alex Stancu0eef0522023-04-05 21:17:52 +030082 volumes:
83 - ./ntsim-ng-o-du-rel-18/config.json:/opt/dev/ntsim-ng/config/config.json
84 - ./ntsim-ng-o-du-rel-18/_3gpp-common-managed-element-running.xml:/opt/dev/deploy/data/_3gpp-common-managed-element-running.xml
85 - ./ntsim-ng-o-du-rel-18/_3gpp-common-managed-element-operational.xml:/opt/dev/deploy/data/_3gpp-common-managed-element-operational.xml
86 environment:
Alex Stancuf7494d02023-04-06 16:30:23 +030087 <<: [*common_env, *du_env]
Alex Stancu0eef0522023-04-05 21:17:52 +030088
Martin Skorupski298afba2023-04-28 13:50:52 +020089 ntsim-ng-o-ru-11221:
demx8as6a93cb372021-06-06 16:05:58 +020090 <<: *common_nf
91 image: "${NEXUS3_DOCKER_REPO}nts-ng-o-ran-ru-fh:${NTS_BUILD_VERSION}"
Martin Skorupski298afba2023-04-28 13:50:52 +020092 container_name: ntsim-ng-o-ru-11221
Alex Stancu80bfd372022-02-04 17:30:41 +020093 hostname: O-RU-11221
demx8as6a93cb372021-06-06 16:05:58 +020094 volumes:
Martin Skorupski298afba2023-04-28 13:50:52 +020095 - ./ntsim-ng-o-ru/o-ru-11221/config.json:/opt/dev/ntsim-ng/config/config.json
96 - ./ntsim-ng-o-ru/o-ru-11221/ietf-hardware-operational.json:/opt/dev/deploy/data/ietf-hardware-operational.json
97 - ./ntsim-ng-o-ru/o-ru-11221/ietf-hardware-running.json:/opt/dev/deploy/data/ietf-hardware-running.json
98 - ./ntsim-ng-o-ru/o-ru-11221/ietf-interfaces-operational.xml:/opt/dev/deploy/data/ietf-interfaces-operational.xml
99 - ./ntsim-ng-o-ru/o-ru-11221/ietf-interfaces-running.xml:/opt/dev/deploy/data/ietf-interfaces-running.xml
demx8as6a93cb372021-06-06 16:05:58 +0200100 environment:
Martin Skorupski298afba2023-04-28 13:50:52 +0200101 SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_SSH_PORT}
Martin Skorupskidd52b072023-04-05 17:25:19 +0200102 <<: [*common_env, *ru_env]
demx8as6a93cb372021-06-06 16:05:58 +0200103
Martin Skorupski298afba2023-04-28 13:50:52 +0200104 ntsim-ng-o-ru-11222:
demx8as6a93cb372021-06-06 16:05:58 +0200105 <<: *common_nf
106 image: "${NEXUS3_DOCKER_REPO}nts-ng-o-ran-ru-fh:${NTS_BUILD_VERSION}"
Martin Skorupski298afba2023-04-28 13:50:52 +0200107 container_name: ntsim-ng-o-ru-11222
Alex Stancu80bfd372022-02-04 17:30:41 +0200108 hostname: O-RU-11222
demx8as6a93cb372021-06-06 16:05:58 +0200109 volumes:
Martin Skorupski298afba2023-04-28 13:50:52 +0200110 - ./ntsim-ng-o-ru/o-ru-11222/config.json:/opt/dev/ntsim-ng/config/config.json
111 - ./ntsim-ng-o-ru/o-ru-11222/ietf-hardware-operational.json:/opt/dev/deploy/data/ietf-hardware-operational.json
112 - ./ntsim-ng-o-ru/o-ru-11222/ietf-hardware-running.json:/opt/dev/deploy/data/ietf-hardware-running.json
113 - ./ntsim-ng-o-ru/o-ru-11222/ietf-interfaces-operational.xml:/opt/dev/deploy/data/ietf-interfaces-operational.xml
114 - ./ntsim-ng-o-ru/o-ru-11222/ietf-interfaces-running.xml:/opt/dev/deploy/data/ietf-interfaces-running.xml
demx8as6a93cb372021-06-06 16:05:58 +0200115 environment:
Martin Skorupski298afba2023-04-28 13:50:52 +0200116 SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_SSH_PORT}
Martin Skorupskidd52b072023-04-05 17:25:19 +0200117 <<: [*common_env, *ru_env]
demx8as6a93cb372021-06-06 16:05:58 +0200118
Martin Skorupski298afba2023-04-28 13:50:52 +0200119 ntsim-ng-o-ru-11223:
demx8as6a93cb372021-06-06 16:05:58 +0200120 <<: *common_nf
121 image: "${NEXUS3_DOCKER_REPO}nts-ng-o-ran-ru-fh:${NTS_BUILD_VERSION}"
Martin Skorupski298afba2023-04-28 13:50:52 +0200122 container_name: ntsim-ng-o-ru-11223
Alex Stancu80bfd372022-02-04 17:30:41 +0200123 hostname: O-RU-11223
demx8as6a93cb372021-06-06 16:05:58 +0200124 volumes:
Martin Skorupski298afba2023-04-28 13:50:52 +0200125 - ./ntsim-ng-o-ru/o-ru-11223/config.json:/opt/dev/ntsim-ng/config/config.json
126 - ./ntsim-ng-o-ru/o-ru-11223/ietf-hardware-operational.json:/opt/dev/deploy/data/ietf-hardware-operational.json
127 - ./ntsim-ng-o-ru/o-ru-11223/ietf-hardware-running.json:/opt/dev/deploy/data/ietf-hardware-running.json
128 - ./ntsim-ng-o-ru/o-ru-11223/ietf-interfaces-operational.xml:/opt/dev/deploy/data/ietf-interfaces-operational.xml
129 - ./ntsim-ng-o-ru/o-ru-11223/ietf-interfaces-running.xml:/opt/dev/deploy/data/ietf-interfaces-running.xml
demx8as6a93cb372021-06-06 16:05:58 +0200130 environment:
Martin Skorupski298afba2023-04-28 13:50:52 +0200131 SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_TLS_PORT}
132 <<: [*common_env, *ru_env]
133
134 ntsim-ng-o-ru-11224:
135 <<: *common_nf
136 image: "${NEXUS3_DOCKER_REPO}nts-ng-o-ran-ru-fh:${NTS_BUILD_VERSION}"
137 container_name: ntsim-ng-o-ru-11224
138 hostname: O-RU-11224
139 volumes:
140 - ./ntsim-ng-o-ru/o-ru-11223/config.json:/opt/dev/ntsim-ng/config/config.json
141 - ./ntsim-ng-o-ru/o-ru-11223/ietf-hardware-operational.json:/opt/dev/deploy/data/ietf-hardware-operational.json
142 - ./ntsim-ng-o-ru/o-ru-11223/ietf-hardware-running.json:/opt/dev/deploy/data/ietf-hardware-running.json
143 - ./ntsim-ng-o-ru/o-ru-11223/ietf-interfaces-operational.xml:/opt/dev/deploy/data/ietf-interfaces-operational.xml
144 - ./ntsim-ng-o-ru/o-ru-11223/ietf-interfaces-running.xml:/opt/dev/deploy/data/ietf-interfaces-running.xml
145 environment:
Martin Skorupski298afba2023-04-28 13:50:52 +0200146 SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_TLS_PORT}
Martin Skorupskidd52b072023-04-05 17:25:19 +0200147 <<: [*common_env, *ru_env]
demx8as6a93cb372021-06-06 16:05:58 +0200148
demx8as6a93cb372021-06-06 16:05:58 +0200149networks:
150 default:
Martin Skorupski470bbf52023-05-14 12:35:12 +0200151 driver: bridge
152 name: network
153 enable_ipv6: true
154 ipam:
155 driver: default
156 config:
157 - subnet: ${NETWORK_SUBNET_DCN_IPv6}