26768457edb31cb8b07716a514635a186eae69c3
[oam.git] / solution / dev / smo / yang-validator / docker-compose.yml
1 ################################################################################
2 # Copyright 2020 highstreet technologies GmbH 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 ################################################################################
17
18 version: '2.4'
19 services:
20   ntsim-ng-o-ran-fh:
21     image: "${NEXUS_REPO}/o-ran-sc/nts-ng-o-ran-fh:${SIM_BUILD_VERSION}"
22     container_name: nts-ng-o-ran-fh
23     ports:
24      - "::18300:830"
25     volumes:
26      - "/var/run/docker.sock:/var/run/docker.sock"
27      - "/usr/bin/docker:/usr/bin/docker"
28     logging:
29       driver: "json-file"
30       options:
31         max-size: "30m"
32         max-file: "5"
33     networks:
34       app_net:
35
36   sdnr:
37     build:
38       context: ./odl-aluminium
39     image: ${ODL_DOCKER_IMAGE_NAME}:${ODL_DOCKER_IMAGE_TAG}
40     container_name: vanilla-odl-container
41     ports:
42       - "${PORTPREFIX}8181:8181"
43       - "${PORTPREFIX}8101:8101"
44       - "${PORTPREFIX}6666:6666"
45     environment:
46       - ODL_HOME=${ODL_HOME}
47     volumes:
48      - ${LOCAL_SDNR_MOUNT}/sdnr/logs:${ODL_HOME}/data/log
49     logging:
50       driver: "json-file"
51       options:
52         max-size: "30m"
53         max-file: "5"
54     networks:
55       app_net:
56
57 networks:
58   app_net:
59     driver: bridge
60     ipam:
61       driver: default
62