blob: 14cf1b995f42ff30b0fbfda47875b842917a48a8 [file] [log] [blame]
demx8as6a93cb372021-06-06 16:05:58 +02001################################################################################
Martin Skorupskie1e245b2024-09-23 16:34:31 +02002# Copyright 2024 highstreet technologies
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#
demx8as6a93cb372021-06-06 16:05:58 +020016x-common_env: &common_env
17 IPv6_ENABLED: ${IPv6_ENABLED}
18 SSH_CONNECTIONS: ${SSH_CONNECTIONS}
Alex Stancu907218a2022-03-03 14:47:18 +020019 TLS_CONNECTIONS: ${TLS_CONNECTIONS}
demx8as6a93cb372021-06-06 16:05:58 +020020 NTS_NF_MOUNT_POINT_ADDRESSING_METHOD: ${NTS_NF_MOUNT_POINT_ADDRESSING_METHOD}
Alex Stancu907218a2022-03-03 14:47:18 +020021
demx8as6a93cb372021-06-06 16:05:58 +020022 NTS_HOST_IP: ${NTS_HOST_IP}
23 NTS_HOST_BASE_PORT: ${NTS_HOST_BASE_PORT}
24 NTS_HOST_NETCONF_SSH_BASE_PORT: ${NTS_HOST_NETCONF_SSH_BASE_PORT}
25 NTS_HOST_NETCONF_TLS_BASE_PORT: ${NTS_HOST_NETCONF_TLS_BASE_PORT}
26 NTS_HOST_TRANSFER_FTP_BASE_PORT: ${NTS_HOST_TRANSFER_FTP_BASE_PORT}
27 NTS_HOST_TRANSFER_SFTP_BASE_PORT: ${NTS_HOST_TRANSFER_SFTP_BASE_PORT}
Alex Stancu907218a2022-03-03 14:47:18 +020028
demx8as6a93cb372021-06-06 16:05:58 +020029 SDN_CONTROLLER_PROTOCOL: ${SDN_CONTROLLER_PROTOCOL}
Martin Skorupski470bbf52023-05-14 12:35:12 +020030 SDN_CONTROLLER_IP: ${SDNC_DCN_HOST}
31 SDN_CONTROLLER_CALLHOME_IP: ${SDNC_DCN_HOST}
demx8as6a93cb372021-06-06 16:05:58 +020032 SDN_CONTROLLER_USERNAME: ${ADMIN_USERNAME}
33 SDN_CONTROLLER_PASSWORD: ${ADMIN_PASSWORD}
Alex Stancu907218a2022-03-03 14:47:18 +020034
demx8as6a93cb372021-06-06 16:05:58 +020035 VES_COMMON_HEADER_VERSION: ${VES_COMMON_HEADER_VERSION}
36 VES_ENDPOINT_PROTOCOL: ${VES_ENDPOINT_PROTOCOL}
Martin Skorupski470bbf52023-05-14 12:35:12 +020037 VES_ENDPOINT_IP: ${VES_COLLECTOR_DCN_HOST}
demx8as6a93cb372021-06-06 16:05:58 +020038 VES_ENDPOINT_PORT: ${VES_ENDPOINT_PORT}
39 VES_ENDPOINT_AUTH_METHOD: ${VES_ENDPOINT_AUTH_METHOD}
40 VES_ENDPOINT_USERNAME: ${VES_ENDPOINT_USERNAME}
41 VES_ENDPOINT_PASSWORD: ${VES_ENDPOINT_PASSWORD}
42
43x-du_env: &du_env
demx8as6243ef372022-10-21 13:35:53 +020044 # NTS_NF_STANDALONE_START_FEATURES: "datastore-populate ves-heartbeat ves-file-ready ves-pnf-registration web-cut-through"
45 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 +020046
47x-ru-env: &ru_env
48 NTS_NF_STANDALONE_START_FEATURES: "datastore-populate netconf-call-home web-cut-through"
49
50x-topo-env: &topo_env
51 NTS_NF_STANDALONE_START_FEATURES: "datastore-populate netconf-call-home web-cut-through"
52
53x-nf: &common_nf
54 stop_grace_period: 5m
Alex Stancu350e5f72023-03-21 16:35:14 +020055 extra_hosts:
demx8as6012475c2023-07-05 16:47:01 +000056 - "controller.dcn.${HTTP_DOMAIN}:${HOST_IP}"
57 - "ves-collector.dcn.${HTTP_DOMAIN}:${HOST_IP}"
demx8as6a93cb372021-06-06 16:05:58 +020058 cap_add:
59 - SYS_ADMIN
60 - SYS_PTRACE
61
62services:
63 ntsim-ng-o-du-1122:
64 <<: *common_nf
65 image: "${NEXUS3_DOCKER_REPO}nts-ng-o-ran-du:${NTS_BUILD_VERSION}"
66 container_name: ntsim-ng-o-du-1122
Alex Stancu80bfd372022-02-04 17:30:41 +020067 hostname: O-DU-1122
demx8as6a93cb372021-06-06 16:05:58 +020068 volumes:
69 - ./ntsim-ng-o-du/config.json:/opt/dev/ntsim-ng/config/config.json
70 - ./ntsim-ng-o-du/o-ran-sc-du-hello-world-running.xml:/opt/dev/deploy/data/o-ran-sc-du-hello-world-running.xml
71 - ./ntsim-ng-o-du/o-ran-sc-du-hello-world-operational.xml:/opt/dev/deploy/data/o-ran-sc-du-hello-world-operational.xml
72 environment:
Martin Skorupskidd52b072023-04-05 17:25:19 +020073 <<: [*common_env, *du_env]
demx8as6a93cb372021-06-06 16:05:58 +020074
Martin Skorupski298afba2023-04-28 13:50:52 +020075 ntsim-ng-o-ru-11221:
demx8as6a93cb372021-06-06 16:05:58 +020076 <<: *common_nf
77 image: "${NEXUS3_DOCKER_REPO}nts-ng-o-ran-ru-fh:${NTS_BUILD_VERSION}"
Martin Skorupski298afba2023-04-28 13:50:52 +020078 container_name: ntsim-ng-o-ru-11221
Alex Stancu80bfd372022-02-04 17:30:41 +020079 hostname: O-RU-11221
demx8as6a93cb372021-06-06 16:05:58 +020080 volumes:
Martin Skorupski298afba2023-04-28 13:50:52 +020081 - ./ntsim-ng-o-ru/o-ru-11221/config.json:/opt/dev/ntsim-ng/config/config.json
82 - ./ntsim-ng-o-ru/o-ru-11221/ietf-hardware-operational.json:/opt/dev/deploy/data/ietf-hardware-operational.json
83 - ./ntsim-ng-o-ru/o-ru-11221/ietf-hardware-running.json:/opt/dev/deploy/data/ietf-hardware-running.json
84 - ./ntsim-ng-o-ru/o-ru-11221/ietf-interfaces-operational.xml:/opt/dev/deploy/data/ietf-interfaces-operational.xml
85 - ./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 +020086 environment:
Martin Skorupski298afba2023-04-28 13:50:52 +020087 SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_SSH_PORT}
Martin Skorupskidd52b072023-04-05 17:25:19 +020088 <<: [*common_env, *ru_env]
demx8as6a93cb372021-06-06 16:05:58 +020089
Martin Skorupski298afba2023-04-28 13:50:52 +020090 ntsim-ng-o-ru-11222:
demx8as6a93cb372021-06-06 16:05:58 +020091 <<: *common_nf
92 image: "${NEXUS3_DOCKER_REPO}nts-ng-o-ran-ru-fh:${NTS_BUILD_VERSION}"
Martin Skorupski298afba2023-04-28 13:50:52 +020093 container_name: ntsim-ng-o-ru-11222
Alex Stancu80bfd372022-02-04 17:30:41 +020094 hostname: O-RU-11222
demx8as6a93cb372021-06-06 16:05:58 +020095 volumes:
Martin Skorupski298afba2023-04-28 13:50:52 +020096 - ./ntsim-ng-o-ru/o-ru-11222/config.json:/opt/dev/ntsim-ng/config/config.json
97 - ./ntsim-ng-o-ru/o-ru-11222/ietf-hardware-operational.json:/opt/dev/deploy/data/ietf-hardware-operational.json
98 - ./ntsim-ng-o-ru/o-ru-11222/ietf-hardware-running.json:/opt/dev/deploy/data/ietf-hardware-running.json
99 - ./ntsim-ng-o-ru/o-ru-11222/ietf-interfaces-operational.xml:/opt/dev/deploy/data/ietf-interfaces-operational.xml
100 - ./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 +0200101 environment:
Martin Skorupski298afba2023-04-28 13:50:52 +0200102 SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_SSH_PORT}
Martin Skorupskidd52b072023-04-05 17:25:19 +0200103 <<: [*common_env, *ru_env]
demx8as6a93cb372021-06-06 16:05:58 +0200104
Martin Skorupski298afba2023-04-28 13:50:52 +0200105 ntsim-ng-o-ru-11223:
demx8as6a93cb372021-06-06 16:05:58 +0200106 <<: *common_nf
107 image: "${NEXUS3_DOCKER_REPO}nts-ng-o-ran-ru-fh:${NTS_BUILD_VERSION}"
Martin Skorupski298afba2023-04-28 13:50:52 +0200108 container_name: ntsim-ng-o-ru-11223
Alex Stancu80bfd372022-02-04 17:30:41 +0200109 hostname: O-RU-11223
demx8as6a93cb372021-06-06 16:05:58 +0200110 volumes:
Martin Skorupski298afba2023-04-28 13:50:52 +0200111 - ./ntsim-ng-o-ru/o-ru-11223/config.json:/opt/dev/ntsim-ng/config/config.json
112 - ./ntsim-ng-o-ru/o-ru-11223/ietf-hardware-operational.json:/opt/dev/deploy/data/ietf-hardware-operational.json
113 - ./ntsim-ng-o-ru/o-ru-11223/ietf-hardware-running.json:/opt/dev/deploy/data/ietf-hardware-running.json
114 - ./ntsim-ng-o-ru/o-ru-11223/ietf-interfaces-operational.xml:/opt/dev/deploy/data/ietf-interfaces-operational.xml
115 - ./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 +0200116 environment:
Martin Skorupski298afba2023-04-28 13:50:52 +0200117 SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_TLS_PORT}
118 <<: [*common_env, *ru_env]
119
120 ntsim-ng-o-ru-11224:
121 <<: *common_nf
122 image: "${NEXUS3_DOCKER_REPO}nts-ng-o-ran-ru-fh:${NTS_BUILD_VERSION}"
123 container_name: ntsim-ng-o-ru-11224
124 hostname: O-RU-11224
125 volumes:
126 - ./ntsim-ng-o-ru/o-ru-11223/config.json:/opt/dev/ntsim-ng/config/config.json
127 - ./ntsim-ng-o-ru/o-ru-11223/ietf-hardware-operational.json:/opt/dev/deploy/data/ietf-hardware-operational.json
128 - ./ntsim-ng-o-ru/o-ru-11223/ietf-hardware-running.json:/opt/dev/deploy/data/ietf-hardware-running.json
129 - ./ntsim-ng-o-ru/o-ru-11223/ietf-interfaces-operational.xml:/opt/dev/deploy/data/ietf-interfaces-operational.xml
130 - ./ntsim-ng-o-ru/o-ru-11223/ietf-interfaces-running.xml:/opt/dev/deploy/data/ietf-interfaces-running.xml
131 environment:
Martin Skorupski298afba2023-04-28 13:50:52 +0200132 SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_TLS_PORT}
Martin Skorupskidd52b072023-04-05 17:25:19 +0200133 <<: [*common_env, *ru_env]
demx8as6a93cb372021-06-06 16:05:58 +0200134
demx8as6a93cb372021-06-06 16:05:58 +0200135networks:
136 default:
Martin Skorupski470bbf52023-05-14 12:35:12 +0200137 driver: bridge
138 name: network
139 enable_ipv6: true
140 ipam:
141 driver: default
142 config:
143 - subnet: ${NETWORK_SUBNET_DCN_IPv6}