Provide SMO deployment helm charts
[oam.git] / solution / integration / smo / docker-compose.yml
1 ################################################################################
2 # Copyright 2019 highstreet technologies and others
3 #
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 #
16 version: "3.3"
17
18 services:
19   sdnr:
20     image: ${NEXUS_DOCKER_REPO}${HT_DOCKER_IMAGE_NAME}:${HT_DOCKER_IMAGE_TAG}
21     container_name: sdnr
22     #ports:
23     #  - "${PORTPREFIX}8181:8181"
24     environment:
25       - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties
26       - ENABLE_ODL_CLUSTER=${ENABLE_ODL_CLUSTER}
27       - CCSDK_REPLICAS=${REPLICAS}
28       - DOMAIN=""
29       - SDNRWT=true
30       - SDNRONLY=true
31       - SDNRINIT=true
32       - SDNRDBURL=http://sdnrdb:9200
33     volumes:
34     #- ${LOCAL_SDNR_MOUNT}/sdnr-frankfurt/logs:${ODL_HOME}/data/log
35      - type: bind
36        source: ./resources/startODL.oom.sh
37        target: /opt/onap/sdnc/bin/startODL.sh 
38      - type: bind 
39        source: ./resources/devicemanager.properties
40        target: ${ODL_HOME}/etc/devicemanager.properties   
41      - type: bind
42        source: ./resources/org.ops4j.pax.logging.cfg
43        target: ${ODL_HOME}/etc/org.ops4j.pax.logging.cfg
44      - type: bind
45        source: ./yang
46        target: $ODL_HOME/cache/schema
47     networks:
48       - sb-net
49             ipv4_address: 172.28.1.2
50     logging:
51       driver:   "json-file"
52       options:
53         max-size: "30m"
54         max-file: "5"
55   sdnrdb:
56     image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ES_VERSION}
57     container_name: sdnrdb
58     #ports:
59     #  - "${PORTPREFIX}9200:9200"
60     environment:
61       - discovery.type=single-node
62     networks:
63       sb-net:
64         ipv4_address: 172.28.1.3
65
66
67   ves-test-collector:
68     image: ${VES_DOCKER_REPO}${VES_TEST_COLLECTOR_IMAGE_NAME}:${VES_TEST_COLLECTOR_IMAGE_TAG}
69     container_name: ves-test-collector-v${VES_API}
70     #ports:
71     #  - "${EXT_VES_PORT}${VES_API}:30000"
72     environment:
73       - VES_API=${VES_API}
74     volumes:
75      - ${LOCAL_VES_MOUNT}/ves-v${VES_API}/logs:/VES5.0/evel/evel-test-collector/logs
76      - type: bind
77        source: ./resources/${VES_FORMAT_FILE}
78        target: /VES5.0/evel/evel-test-collector/docs/att_interface_definition/event_format_updated.json
79      - type: bind
80        source: ./resources/go-collector.sh
81        target: /VES5.0/evel/evel-test-collector/scripts/linux/go-collector.sh
82     logging:
83       driver: "json-file"
84       options:
85         max-size: "30m"
86         max-file: "5"
87     networks:
88       sb-net:
89         ipv4_address: 172.28.1.4
90
91   netconf-server-simulator:
92     image: ${HT_DOCKER_REPO}${NETCONF_SERVER_SIMULATOR_IMAGE_NAME}:${NETCONF_SERVER_SIMULATOR_IMAGE_TAG}
93     container_name: netconf-server-simulator
94     #ports:
95     #  - "${EXT_SIM_PORT}:${INT_SIM_PORT}"
96     #  - "${EXT_SIM_SSH_PORT}:8000"
97     environment:
98       - PORT=${INT_SIM_PORT}
99       - XMLFILE=xmlNeModel/${SIM_MODEL}.xml
100       - SSHPORT=-sshport=8000
101     networks:
102       sb-net:
103         ipv4_address: 172.28.1.11
104     logging:
105       driver: "json-file"
106       options:
107         max-size: "30m"
108         max-file: "5"
109
110   netconf-server-simulator2:
111     image: ${HT_DOCKER_REPO}${NETCONF_SERVER_SIMULATOR_IMAGE_NAME}:${NETCONF_SERVER_SIMULATOR_IMAGE_TAG}
112     container_name: netconf-server-simulator2
113     #ports:
114     #  - "${EXT_SIM_PORT2}:${INT_SIM_PORT2}"
115     #  - "${EXT_SIM_SSH_PORT2}:8000"
116     environment:
117       - PORT=${INT_SIM_PORT2}
118       - XMLFILE=xmlNeModel/${SIM_MODEL2}.xml
119       - SSHPORT=-sshport=8000
120     networks:
121       sb-net:
122           ipv4_address: 172.28.1.12
123     logging:
124       driver: "json-file"
125       options:
126         max-size: "30m"
127         max-file: "5"
128   ntsimulator:
129     image: ${NTS_DOCKER_REPO}${NTS_IMAGE_NAME}:${NTS_IMAGE_TAG}
130     container_name: NTS_Manager
131     #ports:
132     #- "${EXT_PORT}:830"
133     volumes:
134     - "/var/run/docker.sock:/var/run/docker.sock"
135     - "./ntshome:/opt/dev/scripts"
136     - "/usr/bin/docker:/usr/bin/docker"
137     labels:
138       "NTS-manager": ""
139     environment:
140       NTS_IP: "${NTS_IP}"
141       NETCONF_BASE: ${NETCONF_BASE}
142       DOCKER_ENGINE_VERSION: "${DOCKER_ENGINE_VERSION}"
143       MODELS_IMAGE: ${DOCKER_REPO}${MODELS_IMAGE}:${MODELS_TAG}
144     networks:
145       sb-net:
146         ipv4_address: 172.28.1.20
147     logging:
148       driver: "json-file"
149       options:
150         max-size: "30m"
151         max-file: "5"
152   ntsimulator_xran:
153     image: ${NTS_DOCKER_REPO}${NTS_IMAGE_NAME}:${NTS_IMAGE_TAG}
154     container_name: NTS_Manager_XRAN
155     #ports:
156     #- "${EXT_PORT}:830"
157     volumes:
158     - "/var/run/docker.sock:/var/run/docker.sock"
159     - "./ntshome:/opt/dev/scripts"
160     - "/usr/bin/docker:/usr/bin/docker"
161     labels:
162       "NTS-manager": ""
163     environment:
164       NTS_IP: "${NTS_IP}"
165       NETCONF_BASE: 60000
166       DOCKER_ENGINE_VERSION: "${DOCKER_ENGINE_VERSION}"
167       MODELS_IMAGE: ${DOCKER_REPO}hightec/ntsim_xran:latest
168     networks:
169       sb-net:
170         ipv4_address: 172.28.1.30
171     logging:
172       driver: "json-file"
173       options:
174         max-size: "30m"
175         max-file: "5"
176
177
178 networks:
179   sb-net:
180     ipam:
181       config:
182         - subnet: 172.28.0.0/16
183