Make CallHome address different that the SDN Controller RESTCONF address.
[sim/o1-interface.git] / ntsimulator / docker-compose.yaml
1 version: '3.7'
2 services:
3   ntsim-ng:
4     image: "${DOCKER_REPO}nts-ng-manager:${NTS_BUILD_VERSION}"
5     container_name: nts-ng-manager
6     stop_grace_period: 5m
7     ports:
8      - "::${NTS_MANAGER_PORT}:830"
9     volumes:
10      - "/var/run/docker.sock:/var/run/docker.sock"
11      - "/usr/bin/docker:/usr/bin/docker"
12     environment:
13       NTS_HOST_IP: "10.20.11.136"
14       NTS_HOST_BASE_PORT: 50000
15       NTS_HOST_NETCONF_SSH_BASE_PORT: 0
16       NTS_HOST_NETCONF_TLS_BASE_PORT: 1000
17       NTS_HOST_TRANSFER_FTP_BASE_PORT: 2000
18       NTS_HOST_TRANSFER_SFTP_BASE_PORT: 2000
19
20       DOCKER_ENGINE_VERSION: "1.40"
21       IPv6_ENABLED: ${IPv6_ENABLED}
22       SSH_CONNECTIONS: ${SSH_CONNECTIONS}
23       TLS_CONNECTIONS: ${TLS_CONNECTIONS}
24             
25       SDN_CONTROLLER_PROTOCOL: ${SDN_CONTROLLER_PROTOCOL}
26       SDN_CONTROLLER_IP: ${SDN_CONTROLLER_IP}
27       SDN_CONTROLLER_PORT: ${SDN_CONTROLLER_PORT}
28       SDN_CONTROLLER_CALLHOME_IP: ${SDN_CONTROLLER_CALLHOME_IP}
29       SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_PORT}
30       SDN_CONTROLLER_USERNAME: ${SDN_CONTROLLER_USERNAME}
31       SDN_CONTROLLER_PASSWORD: ${SDN_CONTROLLER_PASSWORD}
32
33       VES_COMMON_HEADER_VERSION: ${VES_COMMON_HEADER_VERSION}
34       VES_ENDPOINT_PROTOCOL: ${VES_ENDPOINT_PROTOCOL}
35       VES_ENDPOINT_IP: ${VES_ENDPOINT_IP}
36       VES_ENDPOINT_PORT: ${VES_ENDPOINT_PORT}
37       VES_ENDPOINT_AUTH_METHOD: ${VES_ENDPOINT_AUTH_METHOD}
38       VES_ENDPOINT_USERNAME: ${VES_ENDPOINT_USERNAME}
39       VES_ENDPOINT_PASSWORD: ${VES_ENDPOINT_PASSWORD}
40     # networks:
41     #   app_net:
42
43   ntsim-ng-o-ru:
44     image: "${DOCKER_REPO}nts-ng-o-ran-ru-fh:${NTS_BUILD_VERSION}"
45     cap_add:
46       - SYS_ADMIN
47       - NET_ADMIN
48     stop_grace_period: 5m
49     hostname: "O-RAN-O-RU-1"
50     ports:
51      - ":::18300:830"
52     environment:
53       IPv6_ENABLED: ${IPv6_ENABLED}
54       SSH_CONNECTIONS: ${SSH_CONNECTIONS}
55       TLS_CONNECTIONS: ${TLS_CONNECTIONS}
56       NTS_NF_STANDALONE_START_FEATURES: ${NTS_NF_STANDALONE_START_FEATURES}
57       NTS_NF_MOUNT_POINT_ADDRESSING_METHOD: ${NTS_NF_MOUNT_POINT_ADDRESSING_METHOD}
58
59       NTS_HOST_IP: ${NTS_HOST_IP}
60       NTS_HOST_BASE_PORT: ${NTS_HOST_BASE_PORT}
61       NTS_HOST_NETCONF_SSH_BASE_PORT: ${NTS_HOST_NETCONF_SSH_BASE_PORT}
62       NTS_HOST_NETCONF_TLS_BASE_PORT: ${NTS_HOST_NETCONF_TLS_BASE_PORT}
63       NTS_HOST_TRANSFER_FTP_BASE_PORT: ${NTS_HOST_TRANSFER_FTP_BASE_PORT}
64       NTS_HOST_TRANSFER_SFTP_BASE_PORT: ${NTS_HOST_TRANSFER_SFTP_BASE_PORT}
65
66       SDN_CONTROLLER_PROTOCOL: ${SDN_CONTROLLER_PROTOCOL}
67       SDN_CONTROLLER_IP: ${SDN_CONTROLLER_IP}
68       SDN_CONTROLLER_PORT: ${SDN_CONTROLLER_PORT}
69       SDN_CONTROLLER_CALLHOME_IP: ${SDN_CONTROLLER_CALLHOME_IP}
70       SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_PORT}
71       SDN_CONTROLLER_USERNAME: ${SDN_CONTROLLER_USERNAME}
72       SDN_CONTROLLER_PASSWORD: ${SDN_CONTROLLER_PASSWORD}
73
74       VES_COMMON_HEADER_VERSION: ${VES_COMMON_HEADER_VERSION}
75       VES_ENDPOINT_PROTOCOL: ${VES_ENDPOINT_PROTOCOL}
76       VES_ENDPOINT_IP: ${VES_ENDPOINT_IP}
77       VES_ENDPOINT_PORT: ${VES_ENDPOINT_PORT}
78       VES_ENDPOINT_AUTH_METHOD: ${VES_ENDPOINT_AUTH_METHOD}
79       VES_ENDPOINT_USERNAME: ${VES_ENDPOINT_USERNAME}
80       VES_ENDPOINT_PASSWORD: ${VES_ENDPOINT_PASSWORD}
81
82     # networks:
83     #   app_net:
84
85   ntsim-ng-o-du:
86     image: "${DOCKER_REPO}nts-ng-o-ran-du:${NTS_BUILD_VERSION}"
87     cap_add:
88       - SYS_ADMIN
89       - NET_ADMIN
90     stop_grace_period: 5m
91     hostname: "O-RAN-O-DU-1"
92     ports:
93      - ":::18301:830"
94     environment:
95       IPv6_ENABLED: ${IPv6_ENABLED}
96       SSH_CONNECTIONS: ${SSH_CONNECTIONS}
97       TLS_CONNECTIONS: ${TLS_CONNECTIONS}
98       NTS_NF_STANDALONE_START_FEATURES: ${NTS_NF_STANDALONE_START_FEATURES}
99       NTS_NF_MOUNT_POINT_ADDRESSING_METHOD: ${NTS_NF_MOUNT_POINT_ADDRESSING_METHOD}
100
101       NTS_HOST_IP: ${NTS_HOST_IP}
102       NTS_HOST_BASE_PORT: ${NTS_HOST_BASE_PORT}
103       NTS_HOST_NETCONF_SSH_BASE_PORT: ${NTS_HOST_NETCONF_SSH_BASE_PORT}
104       NTS_HOST_NETCONF_TLS_BASE_PORT: ${NTS_HOST_NETCONF_TLS_BASE_PORT}
105       NTS_HOST_TRANSFER_FTP_BASE_PORT: ${NTS_HOST_TRANSFER_FTP_BASE_PORT}
106       NTS_HOST_TRANSFER_SFTP_BASE_PORT: ${NTS_HOST_TRANSFER_SFTP_BASE_PORT}
107       
108       SDN_CONTROLLER_PROTOCOL: ${SDN_CONTROLLER_PROTOCOL}
109       SDN_CONTROLLER_IP: ${SDN_CONTROLLER_IP}
110       SDN_CONTROLLER_PORT: ${SDN_CONTROLLER_PORT}
111       SDN_CONTROLLER_CALLHOME_IP: ${SDN_CONTROLLER_CALLHOME_IP}
112       SDN_CONTROLLER_CALLHOME_PORT: ${SDN_CONTROLLER_CALLHOME_PORT}
113       SDN_CONTROLLER_USERNAME: ${SDN_CONTROLLER_USERNAME}
114       SDN_CONTROLLER_PASSWORD: ${SDN_CONTROLLER_PASSWORD}
115
116       VES_COMMON_HEADER_VERSION: ${VES_COMMON_HEADER_VERSION}
117       VES_ENDPOINT_PROTOCOL: ${VES_ENDPOINT_PROTOCOL}
118       VES_ENDPOINT_IP: ${VES_ENDPOINT_IP}
119       VES_ENDPOINT_PORT: ${VES_ENDPOINT_PORT}
120       VES_ENDPOINT_AUTH_METHOD: ${VES_ENDPOINT_AUTH_METHOD}
121       VES_ENDPOINT_USERNAME: ${VES_ENDPOINT_USERNAME}
122       VES_ENDPOINT_PASSWORD: ${VES_ENDPOINT_PASSWORD}
123     # networks:
124     #   app_net:
125   
126 # networks:
127 #   app_net:
128 #     driver: bridge
129 #     ipam:
130 #       driver: default
131
132 # We can attach to any other docker network, like in the example below        
133 networks:
134   default:
135     external:
136       name: smo_integration