aboutsummaryrefslogtreecommitdiffstats
path: root/mdbc-packages/mdbc-docker/compose/two-sites/docker-compose.yml
blob: b1615fc5dd360c2ba281dc90e7a61d9e62eae825 (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
109
110
111
112
113
114
115
116
117
version: '3'
networks:
  default:
    driver: bridge
    driver_opts:
      com.docker.network.driver.mtu: ${MTU}
services:
################################################################################
  cassandra-1:
    image:
      onap/music/mdbc-cassandra
    container_name:
      cassandra-1
    hostname:
      cassandra-1.music.testlab.onap.org
    expose:
      - 9042
      - 9160
      - 7199
    environment:
      - CASSANDRA_CLUSTER_NAME=testcluster
      - CASSANDRA_SEEDS=cassandra-1
      - CASSANDRA_START_RPC=true
    volumes:
      - ./volumes/cassandra/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
#     - ./cache/cassandra-1:/var/lib/cassandra
    command:
      - -s0
################################################################################
  mariadb-1:
    image: mariadb:10.1.11
    container_name:
      mariadb-1
    hostname:
      mariadb-1.music.testlab.onap.org
    expose:
      - 3306
    environment:
      - MYSQL_ROOT_PASSWORD=password
    volumes:
      - ./volumes/mariadb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
      - ./volumes/mariadb/conf.d:/etc/mysql/conf.d
################################################################################
  mdbc-server-1:
    image: onap/music/mdbc-server
    container_name:
      mdbc-server-1
    ports:
      - "30001:30001"
    volumes:
      - ./volumes/mdbc-server-1/config:/app/config
    environment:
      - JVM_ARGS=-Xms64m -Xmx512m
      - AVATICA_PORT=30001
      - JDBC_URL=jdbc:mysql://mariadb-1:3306
      - JDBC_USER=test
      - JDBC_PASSWORD=password
      - EXIT_DELAY=900
    hostname:
      mdbc-server-1.music.testlab.onap.org
    depends_on:
      - cassandra-1
      - mariadb-1
    command:
      - /app/wait-for.sh
      - -q
      - -t
      - "300"
      - cassandra-1:9042
      - mariadb-1:3306
      - --
      - "/app/start-mdbc-server.sh"
################################################################################
  mariadb-2:
    image: mariadb:10.1.11
    container_name:
      mariadb-2
    hostname:
      mariadb-2.music.testlab.onap.org
    expose:
      - 3306
    environment:
      - MYSQL_ROOT_PASSWORD=password
    volumes:
      - ./volumes/mariadb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
      - ./volumes/mariadb/conf.d:/etc/mysql/conf.d
################################################################################
  mdbc-server-2:
    image: onap/music/mdbc-server
    container_name:
      mdbc-server-2
    ports:
      - "30002:30002"
    volumes:
      - ./volumes/mdbc-server-2/config:/app/config
    environment:
      - JVM_ARGS=-Xms64m -Xmx512m
      - AVATICA_PORT=30002
      - JDBC_URL=jdbc:mysql://mariadb-2:3306
      - JDBC_USER=test
      - JDBC_PASSWORD=password
      - EXIT_DELAY=900
    hostname:
      mdbc-server-2.music.testlab.onap.org
    depends_on:
      - cassandra-1
      - mariadb-2
    command:
      - /app/wait-for.sh
      - -q
      - -t
      - "300"
      - cassandra-1:9042
      - mariadb-2:3306
      - mdbc-server-1:30001
      - --
      - "/app/start-mdbc-server.sh"