summaryrefslogtreecommitdiffstats
path: root/ms/gra/gra-docker/src/main/dc/docker-compose.yaml
blob: 682655e635ddf8b0fb146c1ea475a4c65641317d (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '2.1'

services:
  db:
    image: mariadb:10.5
    container_name: gra_db
    ports:
      - "13306:3306"
    environment:
      - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
      - MYSQL_ROOT_HOST=%
      - MYSQL_USER=${MYSQL_USER}
      - MYSQL_PASSWORD=${MYSQL_PASSWORD}
      - MYSQL_DATABASE=${MYSQL_DATABASE}
    logging:
      driver:   "json-file"
      options:
        max-size: "30m"
        max-file: "5"


  gra:
    image: onap/sdnc-gra:latest
    depends_on:
      - db
    container_name: gra_controller
    ports:
      - "8181:8080"
      - "8443:8443"
    volumes:
      - ../resources/application.properties:/opt/sdnc/gra/config/application.properties
     # Uncomment line below to authenticate with AAF
     # - ../resources/cadi-example.properties:/opt/sdnc/gra/config/cadi.properties
      - ../resources/cadi-log.properties:/opt/sdnc/gra/config/cadi-log.properties
    links:
      - db:dbhost
    environment:
      - MYSQL_DB_HOST=dbhost
      - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
      - MYSQL_USER=${MYSQL_USER}
      - MYSQL_PASSWORD=${MYSQL_PASSWORD}
      - MYSQL_DATABASE=${MYSQL_DATABASE}
      - ODL_USER=${ODL_USER}
      - AAF_MECHID_CRED=${ODL_PASSWORD}
      - ODL_URI=http://localhost:8080
      - SDNC_CONFIG_DIR=/opt/sdnc/gra/config
      - LOG_LEVEL=DEBUG
      - TRUSTSTORE_PASSWORD=changeit
      - CACERT_PASSWORD=changeit
      - SDNC_CERT_DIR=/opt/sdnc/gra/config
      - JAVA_SECURITY_DIR=/usr/lib/jvm/default-jvm/jre/lib/security
      - TRUSTSTORE=truststoreONAPall.jks
      - SDNNFT_HOST=${SDNNFT_HOST:-localhost}
      - LOG_PATH=/opt/sdnc/gra/logs
    logging:
      driver:   "json-file"
      options:
        max-size: "30m"
        max-file: "5"
    extra_hosts:
      aaf-onap-test.osaaf.org: 10.12.5.145

  dgbuilder:
    image: nexus3.onap.org:10001/onap/ccsdk-dgbuilder-image:latest
    depends_on:
      - db
    container_name:  gra_dgbuilder
    entrypoint:
       - "/bin/bash"
       - "-c"
       - "cd /opt/onap/ccsdk/dgbuilder/ && ./start.sh sdnc1.0 && wait"
    ports:
      - "3200:3100"
    volumes:
      - ${HOME}/st_sdncp/platform-logic:/opt/onap/ccsdk/platform-logic
    links:
      - db:dbhost
      - db:sdnctldb01
      - db:sdnctldb02
    environment:
      - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
      - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties
      - MYSQL_USER=${MYSQL_USER}
      - MYSQL_PASSWORD=${MYSQL_PASSWORD}
      - MYSQL_DATABASE=${MYSQL_DATABASE}
    logging:
      driver:   "json-file"
      options:
        max-size: "30m"
        max-file: "5"