Dan Timoney | 42624f1 | 2020-11-11 13:13:42 -0500 | [diff] [blame^] | 1 | version: '2.1' |
BT2983 | 7202e8f | 2018-08-27 19:14:42 -0600 | [diff] [blame] | 2 | |
Dan Timoney | 42624f1 | 2020-11-11 13:13:42 -0500 | [diff] [blame^] | 3 | services: |
| 4 | nengdb: |
| 5 | image: mariadb:10.5 |
BT2983 | 7202e8f | 2018-08-27 19:14:42 -0600 | [diff] [blame] | 6 | container_name: nengdb |
| 7 | ports: |
| 8 | - "${NENG_DB_PORT}:3306" |
Dan Timoney | 42624f1 | 2020-11-11 13:13:42 -0500 | [diff] [blame^] | 9 | #volumes: |
| 10 | # - /var/lib/nengdb:/var/lib/mysql |
BT2983 | 7202e8f | 2018-08-27 19:14:42 -0600 | [diff] [blame] | 11 | 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 Timoney | 42624f1 | 2020-11-11 13:13:42 -0500 | [diff] [blame^] | 18 | neng: |
| 19 | depends_on : |
| 20 | - nengdb |
| 21 | image: onap/ccsdk-apps-ms-neng:latest |
BT2983 | 7202e8f | 2018-08-27 19:14:42 -0600 | [diff] [blame] | 22 | container_name: neng |
| 23 | ports: |
| 24 | - "${NENG_SERV_PORT}:8080" |
| 25 | restart: always |
Dan Timoney | 42624f1 | 2020-11-11 13:13:42 -0500 | [diff] [blame^] | 26 | links: |
| 27 | - nengdb:mariadb-galera |
BT2983 | 7202e8f | 2018-08-27 19:14:42 -0600 | [diff] [blame] | 28 | environment: |
| 29 | SPRING_PROFILE: "${SPRING_PROFILE}" |
Dan Timoney | 42624f1 | 2020-11-11 13:13:42 -0500 | [diff] [blame^] | 30 | NENG_DB_URL: "jdbc:mysql://mariadb-galera:3306/neng" |
BT2983 | 7202e8f | 2018-08-27 19:14:42 -0600 | [diff] [blame] | 31 | NENG_DB_USER: "${NENG_DB_USER}" |
| 32 | NENG_DB_PASS: "${NENG_DB_PASS}" |
| 33 | |