aboutsummaryrefslogtreecommitdiffstats
path: root/csit/scripts/sdnr/docker-compose/docker-compose-single-sdnr.yaml
blob: b7c7e7b75e2d45896bba32ac26e9693392410006 (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
version: "2.2"
services:
  sdnr:
    image: ${NEXUS_DOCKER_IMAGE_NAME}:${NEXUS_DOCKER_IMAGE_TAG}
    container_name: sdnr
    ports:
      - "8181:8181"
      - "8101:8101"
#entrypoint: ["/bin/bash", "/opt/onap/sdnc/bin/startODL.oom.sh"]
    environment:
      - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties
      - ODL_CERT_DIR=${ODL_CERT_DIR}
      - ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD}
      - ENABLE_ODL_CLUSTER=false
      - SDNC_REPLICAS=0
      - CCSDK_REPLICAS=0
      - DOMAIN=""
      - SDNRWT=true
      - SDNRINIT=true
      - SDNRONLY=true
      - JAVA_OPTS=-Xms256m -Xmx2g
    volumes:
      - ./sdnr/mountpoint-registrar.properties:/opt/opendaylight/etc/mountpoint-registrar.properties
      - ./sdnr/certs/certs.properties:${ODL_CERT_DIR}/certs.properties
      - ./sdnr/certs/keys0.zip:${ODL_CERT_DIR}/keys0.zip
    networks:
      integration:
        ipv4_address: ${SDNR_IP}
    logging:
      driver:   "json-file"
      options:
        max-size: "30m"
        max-file: "5"

networks:
  integration:
    name: ${NETWORK_NAME}
    driver: bridge
    ipam:
      driver: default
      config:
      - subnet: ${NETWORK_SUBNET}
        gateway: ${GATEWAY_IP}