aboutsummaryrefslogtreecommitdiffstats
path: root/csit/scripts/sdnr/docker-compose/docker-compose-single-sdnr-web.override.yaml
blob: c8d1728aba0e9d43ca2dec88a8a80a3fd9c8ba7b (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
version: "2.2"
services:
  sdnr:
    environment:
     - SDNRDM="true"
  topology-api:
    image: ${TOPOLOGY_DOCKER_REPO}/${TOPOLOGY_DOCKER_IMAGE_NAME}:${TOPOLOGY_DOCKER_IMAGE_TAG}
    container_name: topology-api
    ports:
      - "3001:3001"
    environment:
      - AUTH_ENABLED=${AUTH_ENABLED}
      - AUTH_HOST_URL=${IDENTITY_PROVIDER_URL}
      # - AUTH_CONFIG_FILE
      - PROVIDERS=${TOPOLOGY_PROVIDERS}
      - LOAD_PACKAGES=${LOAD_PACKAGES}
    depends_on:
      - sdnr
    networks:
      integration:
        ipv4_address: ${TOPOLOGY_IP}
  sdnr-web:
    image: ${NEXUS_DOCKER_REPO}/${NEXUS_DOCKER_WEB_IMAGE_NAME}:${NEXUS_DOCKER_IMAGE_TAG}
    container_name: sdnr-web
    ports:
      - "${SDNC_WEB_PORT}:${SDNC_WEB_PORT}"
    environment:
      - WEBPROTOCOL=HTTP
      - WEBPORT=${SDNC_WEB_PORT}
      - SDNRPROTOCOL=HTTP
      - SDNRHOST=sdnr
      - SDNRPORT=${SDNRPORT}
      - TOPOURL=${TOPOURL}
      - TILEURL=${TILEURL}
    depends_on:
      - topology-api
      - sdnr
    command: ["/wait-for-sdnc.sh", "sdnr:${SDNRPORT}/ready", "/opt/bitnami/nginx/sbin/run.sh"]
    volumes:
      - ./wait-for-sdnc.sh:/wait-for-sdnc.sh
    networks:
      integration:
        ipv4_address: ${SDNR_WEB_IP}
networks:
  integration:
    name: ${NETWORK_NAME}
    driver: bridge
    ipam:
      driver: default
      config:
      - subnet: ${NETWORK_SUBNET}
        gateway: ${GATEWAY_IP}