blob: 09c588a06ad460208248bbe1b14cd0169c626f05 [file] [log] [blame]
Dan Timoney42624f12020-11-11 13:13:42 -05001version: '2.1'
BT29837202e8f2018-08-27 19:14:42 -06002
Dan Timoney42624f12020-11-11 13:13:42 -05003services:
4 nengdb:
5 image: mariadb:10.5
BT29837202e8f2018-08-27 19:14:42 -06006 container_name: nengdb
7 ports:
8 - "${NENG_DB_PORT}:3306"
Dan Timoney42624f12020-11-11 13:13:42 -05009 #volumes:
10 # - /var/lib/nengdb:/var/lib/mysql
BT29837202e8f2018-08-27 19:14:42 -060011 restart: always
12 environment:
13 MYSQL_ROOT_PASSWORD: "${NENG_DB_ROOT}"
14 MYSQL_DATABASE: neng
15 MYSQL_USER: "${NENG_DB_USER}"
16 MYSQL_PASSWORD: "${NENG_DB_PASS}"
17
Dan Timoney42624f12020-11-11 13:13:42 -050018 neng:
19 depends_on :
20 - nengdb
21 image: onap/ccsdk-apps-ms-neng:latest
BT29837202e8f2018-08-27 19:14:42 -060022 container_name: neng
23 ports:
24 - "${NENG_SERV_PORT}:8080"
25 restart: always
Dan Timoney42624f12020-11-11 13:13:42 -050026 links:
27 - nengdb:mariadb-galera
BT29837202e8f2018-08-27 19:14:42 -060028 environment:
29 SPRING_PROFILE: "${SPRING_PROFILE}"
Dan Timoney42624f12020-11-11 13:13:42 -050030 NENG_DB_URL: "jdbc:mysql://mariadb-galera:3306/neng"
BT29837202e8f2018-08-27 19:14:42 -060031 NENG_DB_USER: "${NENG_DB_USER}"
32 NENG_DB_PASS: "${NENG_DB_PASS}"
33