aboutsummaryrefslogtreecommitdiffstats
path: root/csit/scripts/sdnr/docker-compose/docker-compose-nts-networkfunction.yaml
blob: a4ae7febdb23bcc60c32abba0ff33d5975ece2ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# *******************************************************************************
# * ============LICENSE_START========================================================================
# * Copyright (C) 2021 highstreet technologies GmbH Intellectual Property. All rights reserved.
# * =================================================================================================
# * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# * in compliance with the License. You may obtain a copy of the License at
# *
# * http://www.apache.org/licenses/LICENSE-2.0
# *
# * Unless required by applicable law or agreed to in writing, software distributed under the License
# * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# * or implied. See the License for the specific language governing permissions and limitations under
# * the License.
# * ============LICENSE_END==========================================================================
version: "3"
services:
  nts-function:
    image: ${NTS_NF_DOCKER_REPOSITORY}${NTS_NF_IMAGE_NAME}:${NTS_NF_IMAGE_TAG}
    container_name: ${NTS_NF_IMAGE_NAME}
    stop_grace_period: 5m
    cap_add:
      - NET_ADMIN
    ports:
      - "::${NTS_HOST_NETCONF_SSH_BASE_PORT}-${NTS_HOST_NETCONF_SSH_BASE_PORT_PLUS_SSH_CON}:${EXPOSE_PORT_SSH}-${EXPOSE_PORT_SSH_PLUS_CON}"
      - "::${NTS_HOST_NETCONF_TLS_BASE_PORT}-${NTS_HOST_NETCONF_TLS_BASE_PORT_PLUS_TLS_CON}:${EXPOSE_PORT_TLS}-${EXPOSE_PORT_TLS_PLUS_CON}"
    environment:
      NTS_NF_STANDALONE_START_FEATURES: "datastore-populate ves-heartbeat ves-pnf-registration web-cut-through manual-notification-generation"
      NTS_NF_MOUNT_POINT_ADDRESSING_METHOD: ${NTS_NF_MOUNT_POINT_ADDRESSING_METHOD} # mapping types: host-mapping, docker-mapping
      NTS_HOST_IP: ${NTS_HOST_IP}
      HOSTNAME: ${NTS_NF_CONTAINER_NAME}
      IPv6_ENABLED: ${IPV6_ENABLED}

      SSH_CONNECTIONS: ${NTS_NF_SSH_CONNECTIONS}
      TLS_CONNECTIONS: ${NTS_NF_TLS_CONNECTIONS}
      NTS_HOST_NETCONF_SSH_BASE_PORT: ${NTS_HOST_NETCONF_SSH_BASE_PORT}
      NTS_HOST_NETCONF_TLS_BASE_PORT: ${NTS_HOST_NETCONF_TLS_BASE_PORT}
      
      SDN_CONTROLLER_PROTOCOL: ${SDN_CONTROLLER_PROTOCOL}
      SDN_CONTROLLER_IP: ${NTS_NF_SDN_CONTROLLER_IP}
      SDN_CONTROLLER_PORT: ${NTS_NF_SDN_CONTROLLER_PORT}
      SDN_CONTROLLER_CALLHOME_PORT: 6666
      SDN_CONTROLLER_USERNAME: ${ODL_ADMIN_USERNAME}
      SDN_CONTROLLER_PASSWORD: ${ODL_ADMIN_PASSWORD}

      VES_ENDPOINT_PROTOCOL: "https"
      VES_ENDPOINT_IP: "127.0.0.1"
      VES_ENDPOINT_PORT: 1234
      VES_ENDPOINT_AUTH_METHOD: "no-auth"
      VES_ENDPOINT_USERNAME: "admin"
      VES_ENDPOINT_PASSWORD: "admin"
    networks:
      integration:
        ipv4_address: ${NTS_NF_IP}

networks:
  integration:
    name: ${NETWORK_NAME}
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: ${NETWORK_SUBNET}
          gateway: ${GATEWAY_IP}