summaryrefslogtreecommitdiffstats
path: root/cmso-robot/docker/cmso-service/docker-compose.yml
blob: 44f7c27750d4ef98379222ebc9f24ca0c3be1fa9 (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
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:
    image: onap/optf-cmso-dbinit
    volumes:
      - "../etc:/share/etc:rw"
      - "../logs:/share/logs:rw"
    depends_on:
      - mariadb
    environment: 
      - DB_HOST=mariadb
    entrypoint: "bash -x /share/etc/startDbinitService.sh"

  cmso-service:
    image: onap/optf-cmso-service
    volumes:
      - "../etc:/share/etc:rw"
      - "../logs:/share/logs:rw"
      - "../debug-logs:/share/debug-logs:rw"
    depends_on:
      - db-init
    entrypoint: "bash -x /share/etc/startJacocoService.sh"
    ports:
      - "8080:8080"
    environment: 
      - DB_HOST=mariadb

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