X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=solution%2Fsmo%2Foam%2Fdocker-compose.yml;h=d6e943835b46258c0b07c40b6a9c7bf32ff956f0;hb=refs%2Fchanges%2F21%2F11321%2F1;hp=b778170ce0b4d2d644151f4f4020ed3300716bfa;hpb=844d078e7684f1f9d4ed52916d4e74a7e8339d86;p=oam.git diff --git a/solution/smo/oam/docker-compose.yml b/solution/smo/oam/docker-compose.yml index b778170..d6e9438 100755 --- a/solution/smo/oam/docker-compose.yml +++ b/solution/smo/oam/docker-compose.yml @@ -1,3 +1,19 @@ +################################################################################ +# Copyright 2023 highstreet technologies GmbH +# +# 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. +# + # no more versions needed! Compose spec supports all features w/o a version services: @@ -22,6 +38,7 @@ services: controller: condition: service_healthy networks: + dmz: smo: controller: @@ -29,16 +46,13 @@ services: container_name: controller hostname: controller extra_hosts: - - "identity.smo.o-ran-sc.org:${HOST_IP}" + - "controller.dcn.smo.o-ran-sc.org:${HOST_IP}" healthcheck: - test: wget -U ${ADMIN_USERNAME}:${ADMIN_PASSWORD} --no-verbose --tries=1 --spider http://localhost:${SDNC_REST_PORT}/ready || exit 1 + test: wget --no-verbose --tries=1 --spider http://localhost:${SDNC_REST_PORT}/ready || exit 1 start_period: 60s interval: 10s timeout: 5s retries: 5 - ports: - - 4334:4334 - - 4335:4335 environment: ENABLE_ODL_CLUSTER: false ENABLE_OAUTH: true @@ -78,14 +92,24 @@ services: labels: traefik.enable: true traefik.http.routers.controller.entrypoints: websecure - traefik.http.routers.controller.rule: Host(`controller.oam.${SOLUTION_DOMAIN}`) + traefik.http.routers.controller.rule: Host(`controller.dcn.${SOLUTION_DOMAIN}`) traefik.http.routers.controller.tls: true traefik.http.services.controller.loadbalancer.server.port: ${SDNC_REST_PORT} + + traefik.tcp.routers.controller-ssh.entrypoints: ssh-netconf-callhome + traefik.tcp.routers.controller-ssh.rule: HostSNI(`*`) + traefik.tcp.routers.controller-ssh.tls: false + traefik.tcp.routers.controller-ssh.service: controller-ssh + traefik.tcp.services.controller-ssh.loadbalancer.server.port: 4334 + + traefik.tcp.routers.controller-tls.entrypoints: tls-netconf-callhome + traefik.tcp.routers.controller-tls.rule: HostSNI(`*`) + traefik.tcp.routers.controller-tls.tls: false + traefik.tcp.routers.controller-tls.service: controller-tls + traefik.tcp.services.controller-tls.loadbalancer.server.port: 4335 networks: smo: - default: - ipv4_address: ${SDNC_OAM_IPv4} - ipv6_address: ${SDNC_OAM_IPv6} + dcn: ves-collector: image: ${VES_COLLECTOR_IMAGE}-configured @@ -95,6 +119,8 @@ services: - BASEIMAGE=${VES_COLLECTOR_IMAGE} container_name: ves-collector hostname: ves-collector + extra_hosts: + - "ves-collector.dcn.${SOLUTION_DOMAIN}:${HOST_IP}" healthcheck: test: curl -k -u ${VES_ENDPOINT_USERNAME}:${VES_ENDPOINT_PASSWORD} ${VES_ENDPOINT_PROTOCOL}://localhost:${VES_ENDPOINT_PORT} || exit 1 start_period: 1s @@ -109,26 +135,17 @@ services: labels: traefik.enable: true traefik.http.routers.ves.entrypoints: websecure - traefik.http.routers.ves.rule: Host(`ves-collector.oam.${SOLUTION_DOMAIN}`) + traefik.http.routers.ves.rule: Host(`ves-collector.dcn.${SOLUTION_DOMAIN}`) traefik.http.routers.ves.tls: true traefik.http.services.ves.loadbalancer.server.port: ${VES_ENDPOINT_PORT} networks: smo: - default: - ipv4_address: ${VES_COLLECTOR_OAM_IPv4} - ipv6_address: ${VES_COLLECTOR_OAM_IPv6} + dcn: networks: + dmz: + external: true smo: external: true - default: - driver: bridge - name: oam - enable_ipv6: true - ipam: - driver: default - config: - - subnet: ${NETWORK_SUBNET_OAM_IPv4} - gateway: ${NETWORK_GATEWAY_OAM_IPv4} - - subnet: ${NETWORK_SUBNET_OAM_IPv6} - gateway: ${NETWORK_GATEWAY_OAM_IPv6} + dcn: + external: true