Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 14 | version: '2' |
| 15 | services: |
| 16 | database_data: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 17 | image: "${REGISTRY}tianon/true:${TRUE_TAG:-latest}" |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 18 | volumes: |
| 19 | - /var/lib/postgresql/data |
| 20 | |
| 21 | database: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 22 | image: "${REGISTRY}postgres:${POSTGRES_TAG:-9.6.1}" |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 23 | env_file: |
| 24 | - ./opennms/env/postgres.env |
| 25 | ports: |
| 26 | - "15432:5432" |
| 27 | depends_on: |
| 28 | - database_data |
| 29 | volumes_from: |
| 30 | - database_data:rw |
| 31 | |
| 32 | opennms_data: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 33 | image: "${REGISTRY}tianon/true:${TRUE_TAG:-latest}" |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 34 | volumes: |
| 35 | - /var/log/opennms |
| 36 | - /var/opennms/rrd |
| 37 | - /var/opennms/reports |
| 38 | |
| 39 | opennms: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 40 | image: "${REGISTRY}${REPOSITORY}voltha-opennms:${TAG:-latest}" |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 41 | env_file: |
| 42 | - ./opennms/env/opennms.env |
| 43 | - ./opennms/env/postgres.env |
| 44 | depends_on: |
| 45 | - database |
| 46 | - opennms_data |
| 47 | volumes_from: |
| 48 | - opennms_data:rw |
| 49 | volumes: |
| 50 | - ./opennms/etc:/tmp/opennms/etc |
| 51 | ports: |
| 52 | - "8980:8980" |
| 53 | - "18980:18980" |
| 54 | - "1099:1099" |
| 55 | - "18101:8101" |
| 56 | - "61616:61616" |
| 57 | - "5817:5817" |
| 58 | - "162:162/udp" |