aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-sonar/docker/integration/docker-compose.yml
blob: ce5a8264b4bfb711f4d8e9c9a78f11c7559c9110 (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3'

services:
  mariadb:
    image: mariadb:10.1.11
    volumes:
      - "/var/lib/mysql"
      - "./mariadb/conf1:/etc/mysql/conf.d:ro"
    environment:
      - MYSQL_ROOT_PASSWORD=beer
    ports:
      - "8806:3306"

  db-init-svc:
    image: onap/optf-cmso-dbinit
    volumes:
      - "./cmso-service/etc:/share/etc:rw"
      - "./cmso-service/logs:/share/logs:rw"
    depends_on:
      - mariadb
    environment: 
      - DB_HOST=mariadb
      - DB_PORT=3306
    entrypoint: "bash -x /share/etc/startDbinitService.sh"

  db-init-opt:
    image: onap/optf-cmso-dbinit
    volumes:
      - "./cmso-optimizer/etc:/share/etc:rw"
      - "./cmso-optimizer/logs:/share/logs:rw"
    depends_on:
      - mariadb
    environment: 
      - DB_HOST=mariadb
      - DB_PORT=3306
    entrypoint: "bash -x /share/etc/startDbinitService.sh"


  cmso-service:
    image: onap/optf-cmso-service
    volumes:
      - "./cmso-service/etc:/share/etc:rw"
      - "./cmso-service/logs:/share/logs:rw"
      - "./cmso-service/debug-logs:/share/debug-logs:rw"
    depends_on:
      - db-init-svc
    entrypoint: "bash -x /share/etc/startJacocoService.sh"
    ports:
      - "8080:8080"
    environment: 
      - DB_HOST=mariadb
      - DB_PORT=3306
      - OPTIMIZER_URL=http://cmso-optimizer:7997/optimizer/v1/optimize/schedule
      - OPTIMIZER_HEALTH_URL=http://cmso-optimizer:7997/optimizer/v1/health?checkInterfaces=true

  cmso-ticketmgt:
    image: onap/optf-cmso-ticketmgt
    volumes:
      - "./cmso-ticketmgt/etc:/share/etc:rw"
      - "./cmso-ticketmgt/logs:/share/logs:rw"
      - "./cmso-ticketmgt/debug-logs:/share/debug-logs:rw"
    entrypoint: "bash -x /share/etc/startJacocoService.sh"
    ports:
      - "7999:7999"

  cmso-topology:
    image: onap/optf-cmso-topology
    volumes:
      - "./cmso-topology/etc:/share/etc:rw"
      - "./cmso-topology/logs:/share/logs:rw"
      - "./cmso-topology/debug-logs:/share/debug-logs:rw"
    entrypoint: "bash -x /share/etc/startJacocoService.sh"
    ports:
      - "7998:7998"

  cmso-optimizer:
    image: onap/optf-cmso-optimizer
    volumes:
      - "./cmso-optimizer/etc:/share/etc:rw"
      - "./cmso-optimizer/logs:/share/logs:rw"
      - "./cmso-optimizer/debug-logs:/share/debug-logs:rw"
    depends_on:
      - db-init-opt
    entrypoint: "bash -x /share/etc/startJacocoService.sh"
    ports:
      - "7997:7997"
    environment: 
      - DB_HOST=mariadb
      - DB_PORT=3306
      - TOPOLOGY_HOST=cmso-topology
      - TICKETMGT_HOST=cmso-ticketmgt


  cmso-robot:
    image: onap/optf-cmso-robot
    volumes:
      - "./cmso-robot/logs:/share:rw"
    depends_on:
      - cmso-service
    environment:
      - GLOBAL_SCHEDULER_URL=http://cmso-service:8080
      - GLOBAL_OPTIMIZER_URL=http://cmso-optimizer:7997
      - CMSO_STARTUP_WAIT_TIME=20m
      - TAGS=-i ete -i opt_validation
      - OUTPUT=-d /share
    working_dir: /opt/cmso-robot  
    entrypoint: "bash -x /opt/cmso-robot/ete.sh"