X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=solution%2Fsmo%2Foam%2Fdocker-compose.yml;h=a052e95a424c69fb4ff805b52f1adf3488d6189a;hb=350e5f7b0496801bc50ec5c12c6f8f0f2c02ba8e;hp=57c5553b3702eb8d3ee1061606f702515bbe36b6;hpb=59922d712db771e143e57990d21ccaa0f7b6d7e5;p=oam.git diff --git a/solution/smo/oam/docker-compose.yml b/solution/smo/oam/docker-compose.yml index 57c5553..a052e95 100755 --- a/solution/smo/oam/docker-compose.yml +++ b/solution/smo/oam/docker-compose.yml @@ -18,6 +18,9 @@ services: traefik.http.routers.sdnc-web.rule: Host(`odlux.oam.${SOLUTION_DOMAIN}`) traefik.http.routers.sdnc-web.tls: true traefik.http.services.sdnc-web.loadbalancer.server.port: ${SDNC_WEB_PORT} + depends_on: + controller: + condition: service_healthy networks: smo: @@ -25,6 +28,14 @@ services: image: ${SDNC_IMAGE} container_name: controller hostname: controller + extra_hosts: + - "identity.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 + start_period: 60s + interval: 10s + timeout: 5s + retries: 5 ports: - 4334:4334 - 4335:4335 @@ -66,7 +77,7 @@ services: traefik.http.routers.controller.entrypoints: websecure traefik.http.routers.controller.rule: Host(`controller.oam.${SOLUTION_DOMAIN}`) traefik.http.routers.controller.tls: true - traefik.http.services.controller.loadbalancer.server.port: 8181 + traefik.http.services.controller.loadbalancer.server.port: ${SDNC_REST_PORT} networks: smo: default: @@ -102,4 +113,4 @@ networks: driver: default config: - subnet: "${NETWORK_SUBNET_OAM_IPv6}" - gateway: "${NETWORK_GATEWAY_OAM_IPv6}" \ No newline at end of file + gateway: "${NETWORK_GATEWAY_OAM_IPv6}"